csukuangfj commited on
Commit
02084e1
1 Parent(s): 4360bb8

small fixes

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -62,7 +62,11 @@ css = """
62
  def update_model_dropdown(language: str):
63
  if language in language_to_models:
64
  choices = language_to_models[language]
65
- return gr.Dropdown.update(choices=choices, value=choices[0])
 
 
 
 
66
 
67
  raise ValueError(f"Unsupported language: {language}")
68
 
@@ -166,8 +170,7 @@ with demo:
166
  with gr.Tabs():
167
  with gr.TabItem("Upload video from disk"):
168
  uploaded_video_file = gr.Video(
169
- source="upload",
170
- interactive=True,
171
  label="Upload from disk",
172
  show_share_button=True,
173
  )
 
62
  def update_model_dropdown(language: str):
63
  if language in language_to_models:
64
  choices = language_to_models[language]
65
+ return gr.Dropdown(
66
+ choices=choices,
67
+ value=choices[0],
68
+ interactive=True,
69
+ )
70
 
71
  raise ValueError(f"Unsupported language: {language}")
72
 
 
170
  with gr.Tabs():
171
  with gr.TabItem("Upload video from disk"):
172
  uploaded_video_file = gr.Video(
173
+ sources=["upload"],
 
174
  label="Upload from disk",
175
  show_share_button=True,
176
  )