Jeffgold commited on
Commit
1886f82
·
1 Parent(s): d4ff45e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ def convert_video(video_file: File, quality, aspect_ratio, video_url):
51
  output_path = video_file.name[:-len(file_extension)]
52
 
53
  # Add the .m3u8 file extension
54
- output_path += ".m3u8"
55
 
56
  # Set the output path to the temp directory
57
  output_path = os.path.join(temp_dir, output_path)
@@ -81,4 +81,4 @@ def convert_video(video_file: File, quality, aspect_ratio, video_url):
81
 
82
  from gradio import outputs
83
 
84
- gr.Interface(convert_video, inputs=[video_file, quality, aspect_ratio, video_url], outputs=[outputs.Video()]).launch(share=True)
 
51
  output_path = video_file.name[:-len(file_extension)]
52
 
53
  # Add the .m3u8 file extension
54
+ output_path += "m3u8"
55
 
56
  # Set the output path to the temp directory
57
  output_path = os.path.join(temp_dir, output_path)
 
81
 
82
  from gradio import outputs
83
 
84
+ gr.Interface(convert_video, inputs=[video_file, quality, aspect_ratio, video_url], outputs=[outputs.Video()]).launch(share=False)