Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import os
|
2 |
|
3 |
import gradio as gr
|
@@ -47,6 +49,8 @@ def convert_video(video_file: File, quality, aspect_ratio, video_url):
|
|
47 |
ffmpeg_command = f"ffmpeg -i {video_file} -c:v libx264 -crf {quality} -f hls -aspect {aspect_ratio} {output_path}"
|
48 |
subprocess.run(ffmpeg_command, shell=True)
|
49 |
|
|
|
|
|
50 |
return components.Video(output_path)
|
51 |
|
52 |
from gradio import outputs
|
|
|
1 |
+
import time
|
2 |
+
|
3 |
import os
|
4 |
|
5 |
import gradio as gr
|
|
|
49 |
ffmpeg_command = f"ffmpeg -i {video_file} -c:v libx264 -crf {quality} -f hls -aspect {aspect_ratio} {output_path}"
|
50 |
subprocess.run(ffmpeg_command, shell=True)
|
51 |
|
52 |
+
time.sleep(2)
|
53 |
+
|
54 |
return components.Video(output_path)
|
55 |
|
56 |
from gradio import outputs
|