Jeffgold commited on
Commit
6b59874
·
1 Parent(s): 6731fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -91,10 +91,11 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
91
 
92
  return output_paths # Return the list of completed output files
93
 
94
- video_file = gr.inputs.File(label="Upload video file")
95
- quality = gr.inputs.Slider(18, 28, 1, 23, label="Video quality (18-28, lower is better)")
96
- aspect_ratio = gr.inputs.Textbox(default="16:9", lines=1, label="Aspect ratio (width:height)")
97
- video_url = gr.inputs.Textbox(label="Or enter video URL")
 
98
 
99
  iface = gr.Interface(
100
  convert_video,
 
91
 
92
  return output_paths # Return the list of completed output files
93
 
94
+ video_file = gr.File(label="Video File")
95
+ quality = gr.Dropdown(
96
+ choices=["18", "23", "27", "28", "32"], label="Quality", default="27")
97
+ aspect_ratio = gr.Textbox(default="16:9", lines=1, label="Aspect ratio (width:height)")
98
+ video_url = gr.Textbox(label="Or enter video URL")
99
 
100
  iface = gr.Interface(
101
  convert_video,