Spaces:
Sleeping
Sleeping
csukuangfj
commited on
Commit
•
2401daa
1
Parent(s):
f20fb6c
small fixes
Browse files
app.py
CHANGED
@@ -72,7 +72,11 @@ examples = [
|
|
72 |
def update_model_dropdown(language: str):
|
73 |
if language in language_to_models:
|
74 |
choices = language_to_models[language]
|
75 |
-
return gr.Dropdown
|
|
|
|
|
|
|
|
|
76 |
|
77 |
raise ValueError(f"Unsupported language: {language}")
|
78 |
|
|
|
72 |
def update_model_dropdown(language: str):
|
73 |
if language in language_to_models:
|
74 |
choices = language_to_models[language]
|
75 |
+
return gr.Dropdown(
|
76 |
+
choices=choices,
|
77 |
+
value=choices[0],
|
78 |
+
interactive=True,
|
79 |
+
)
|
80 |
|
81 |
raise ValueError(f"Unsupported language: {language}")
|
82 |
|