Jeffgold commited on
Commit
a25ec23
·
1 Parent(s): a6be34b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -134,9 +134,16 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
134
 
135
 
136
  video_file = gr.File(label="Video File")
137
- quality = gr.Dropdown(
138
- "27", ["18", "23", "27", "28", "32"], label="Quality")
139
- aspect_ratio = gr.Dropdown(["16:9", "1:1", "4:3", "3:2", "5:4", "21:9", "1.85:1", "2.35:1", "3:1", "360", "9:16", "2:1", "1:2", "9:1"], label="Aspect ratio (width:height)", default="16:9")
 
 
 
 
 
 
 
140
  standard_resolutions = [4320, 2160, 1440, 1080, 720, 480, 360, 240, 144] # 8K, 4K, 2K, Full HD, HD, SD in pixels
141
  video_url = gr.Textbox(label="Or enter video URL")
142
 
 
134
 
135
 
136
  video_file = gr.File(label="Video File")
137
+ quality = gr.inputs.Dropdown(
138
+ choices=["18", "23", "27", "28", "32"],
139
+ default="27",
140
+ label="Quality"
141
+ )
142
+ aspect_ratio = gr.inputs.Dropdown(
143
+ choices=["16:9", "1:1", "4:3", "3:2", "5:4", "21:9", "1.85:1", "2.35:1", "3:1", "360", "9:16", "2:1", "1:2", "9:1"],
144
+ default="16:9",
145
+ label="Aspect ratio (width:height)"
146
+ )
147
  standard_resolutions = [4320, 2160, 1440, 1080, 720, 480, 360, 240, 144] # 8K, 4K, 2K, Full HD, HD, SD in pixels
148
  video_url = gr.Textbox(label="Or enter video URL")
149