Jeffgold commited on
Commit
9bd2eae
·
1 Parent(s): c82b1b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,7 +16,7 @@ File = Path
16
  # Define temp directory
17
  temp_dir = tempfile.mkdtemp()
18
 
19
- video_file = gr.inputs.File(label="Video File", type="file", accept="video/*")
20
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
21
  aspect_ratio = gr.inputs.Dropdown(choices=[
22
  "1:1",
@@ -36,6 +36,8 @@ aspect_ratio = gr.inputs.Dropdown(choices=[
36
  "9:1",
37
  ], label="Aspect Ratio", default="16:9")
38
 
 
 
39
  def convert_video(video_file: File, quality, aspect_ratio):
40
  if video_file is None:
41
  output_path = gr.inputs.Textbox(label="Video URL")
 
16
  # Define temp directory
17
  temp_dir = tempfile.mkdtemp()
18
 
19
+ video_file = gr.inputs.File(label="Video File", type="file")
20
  quality = gr.inputs.Dropdown(choices=["18", "23", "28", "32"], label="Quality", default="23")
21
  aspect_ratio = gr.inputs.Dropdown(choices=[
22
  "1:1",
 
36
  "9:1",
37
  ], label="Aspect Ratio", default="16:9")
38
 
39
+ video_url = gr.inputs.Textbox(label="Video URL", type="file")
40
+
41
  def convert_video(video_file: File, quality, aspect_ratio):
42
  if video_file is None:
43
  output_path = gr.inputs.Textbox(label="Video URL")