Spaces:
Sleeping
Sleeping
txya900619
commited on
Commit
•
f5c8e79
1
Parent(s):
9577ea0
fix: dialect_drop_down error bug
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def automatic_speech_recognition(model_id: str, dialect_id: str, audio_data: str
|
|
55 |
def when_model_selected(model_id: str):
|
56 |
model_config = models_config[model_id]
|
57 |
|
58 |
-
if "dialect_mapping" not in model_config
|
59 |
return gr.update(visible=False)
|
60 |
|
61 |
dialect_drop_down_choices = [
|
|
|
55 |
def when_model_selected(model_id: str):
|
56 |
model_config = models_config[model_id]
|
57 |
|
58 |
+
if "dialect_mapping" not in model_config:
|
59 |
return gr.update(visible=False)
|
60 |
|
61 |
dialect_drop_down_choices = [
|