Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -69,14 +69,10 @@ def main(url, parameters, progress=gr.Progress()):
|
|
69 |
|
70 |
|
71 |
# Create temporary file
|
72 |
-
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp4") as tmp_file:
|
73 |
-
response = requests.get(output_video)
|
74 |
-
tmp_file.write(response.content)
|
75 |
-
tmp_file_path = tmp_file.name
|
76 |
|
77 |
# Generate direct download link
|
78 |
base_url = os.environ.get('GRADIO_SERVER_NAME', 'http://localhost:7860')
|
79 |
-
download_url = f"{base_url}/file/{
|
80 |
print(download_url)
|
81 |
|
82 |
finally:
|
|
|
69 |
|
70 |
|
71 |
# Create temporary file
|
|
|
|
|
|
|
|
|
72 |
|
73 |
# Generate direct download link
|
74 |
base_url = os.environ.get('GRADIO_SERVER_NAME', 'http://localhost:7860')
|
75 |
+
download_url = f"{base_url}/file/{output_video}"
|
76 |
print(download_url)
|
77 |
|
78 |
finally:
|