Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,4 +10,6 @@ def convert_video(video_path):
|
|
10 |
ffmpeg_command = f"ffmpeg -i {video_path} -c:v libx264 -crf {quality} -f hls {output_path}"
|
11 |
subprocess.run(ffmpeg_command, shell=True)
|
12 |
|
|
|
|
|
13 |
gr.Interface(convert_video, inputs=[video_path, quality], outputs=[outputs.Video()]).launch()
|
|
|
10 |
ffmpeg_command = f"ffmpeg -i {video_path} -c:v libx264 -crf {quality} -f hls {output_path}"
|
11 |
subprocess.run(ffmpeg_command, shell=True)
|
12 |
|
13 |
+
return gr.outputs.Video(output_path)
|
14 |
+
|
15 |
gr.Interface(convert_video, inputs=[video_path, quality], outputs=[outputs.Video()]).launch()
|