Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,11 @@ def convert_video(video_file: File, quality, aspect_ratio, video_url):
|
|
51 |
|
52 |
time.sleep(2)
|
53 |
|
54 |
-
|
|
|
|
|
|
|
|
|
55 |
|
56 |
from gradio import outputs
|
57 |
|
|
|
51 |
|
52 |
time.sleep(2)
|
53 |
|
54 |
+
# Create a temporary copy of the output file
|
55 |
+
temp_output_path = gradio.components.hash_file(output_path)
|
56 |
+
|
57 |
+
# Return the temporary output file
|
58 |
+
return components.Video(temp_output_path)
|
59 |
|
60 |
from gradio import outputs
|
61 |
|