Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
102 |
# After generating the video files, create links to them
|
103 |
output_links = []
|
104 |
for path in output_paths:
|
105 |
-
output_links.append(f'<a href="http://your_server_ip:
|
106 |
output_html = "<br>".join(output_links)
|
107 |
return output_html
|
108 |
|
@@ -124,5 +124,5 @@ interface = gradio.Interface(
|
|
124 |
allow_flagging=False
|
125 |
)
|
126 |
|
127 |
-
start_http_server(
|
128 |
interface.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
102 |
# After generating the video files, create links to them
|
103 |
output_links = []
|
104 |
for path in output_paths:
|
105 |
+
output_links.append(f'<a href="http://your_server_ip:8000/{path}" target="_blank">Download {Path(path).stem}</a>')
|
106 |
output_html = "<br>".join(output_links)
|
107 |
return output_html
|
108 |
|
|
|
124 |
allow_flagging=False
|
125 |
)
|
126 |
|
127 |
+
start_http_server()
|
128 |
interface.launch(server_name="0.0.0.0", server_port=7860)
|