Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,12 @@ from gradio import components
|
|
6 |
import tempfile
|
7 |
|
8 |
from pathlib import Path
|
|
|
9 |
|
10 |
# Define File object
|
11 |
File = Path
|
12 |
|
13 |
-
video_file = gr.inputs.File(label="Video File",
|
14 |
quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
|
15 |
aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio", default="16:9")
|
16 |
|
|
|
6 |
import tempfile
|
7 |
|
8 |
from pathlib import Path
|
9 |
+
from gradio import inputs
|
10 |
|
11 |
# Define File object
|
12 |
File = Path
|
13 |
|
14 |
+
video_file = gr.inputs.File(label="Video File", required=False)
|
15 |
quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
|
16 |
aspect_ratio = gr.inputs.Dropdown(choices=["16:9", "4:3", "3:2", "2:1"], label="Aspect Ratio", default="16:9")
|
17 |
|