Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|