Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
100 |
html = ""
|
101 |
for path in output_paths:
|
102 |
if path.suffix in ['.mp4', '.webm', '.ogg']:
|
103 |
-
html += f'<p><video width="320" height="240" controls><source src="http://localhost:5000/files/{path.name}" type="video/{path.suffix.lstrip(
|
104 |
elif path.suffix == '.txt':
|
105 |
with open(path, 'r') as file:
|
106 |
text_content = file.read()
|
|
|
100 |
html = ""
|
101 |
for path in output_paths:
|
102 |
if path.suffix in ['.mp4', '.webm', '.ogg']:
|
103 |
+
html += f'<p><video width="320" height="240" controls><source src="http://localhost:5000/files/{path.name}" type="video/{path.suffix.lstrip(".")}">Your browser does not support the video tag.</video></p>'
|
104 |
elif path.suffix == '.txt':
|
105 |
with open(path, 'r') as file:
|
106 |
text_content = file.read()
|