Jeffgold commited on
Commit
ca0877d
·
1 Parent(s): 5b022ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -13,7 +13,23 @@ File = Path
13
 
14
  video_file = gr.inputs.File(label="Video File")
15
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
16
- aspect_ratio = gr.inputs.RangeSlider(min=1, max=16, step=1, label="Aspect Ratio", default=16)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  def convert_video(video_file: File, quality, aspect_ratio):
19
  if video_file is None:
 
13
 
14
  video_file = gr.inputs.File(label="Video File")
15
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
16
+ aspect_ratio = gr.inputs.Dropdown(choices=[
17
+ "1:1",
18
+ "4:3",
19
+ "3:2",
20
+ "5:4",
21
+ "16:9",
22
+ "21:9",
23
+ "1.85:1",
24
+ "2.35:1",
25
+ "3:1",
26
+ "360",
27
+ "9:16",
28
+ "16:9",
29
+ "2:1",
30
+ "1:2",
31
+ "9:1",
32
+ ], label="Aspect Ratio", default="16:9")
33
 
34
  def convert_video(video_file: File, quality, aspect_ratio):
35
  if video_file is None: