Jeffgold commited on
Commit
32e947f
·
1 Parent(s): a413b20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- return components.Video(output_path)
 
 
 
 
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