Jeffgold commited on
Commit
1271fd0
·
1 Parent(s): 5296733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ from gradio import components
5
 
6
  import tempfile
7
 
8
- video_file = gr.inputs.File(label="Video File")
9
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality")
10
- aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio")
11
 
12
  def convert_video(video_file, quality, aspect_ratio):
13
  output_path = f"{video_file.name}.m3u8"
 
5
 
6
  import tempfile
7
 
8
+ video_file = gr.inputs.Video(label="Video File")
9
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality")
10
+ aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio", default="16:9")
11
 
12
  def convert_video(video_file, quality, aspect_ratio):
13
  output_path = f"{video_file.name}.m3u8"