csukuangfj commited on
Commit
1b42ccf
1 Parent(s): fe20096

minor fixes

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -93,7 +93,12 @@ def process(in_filename: str, language: str) -> str:
93
 
94
  with demo:
95
  gr.Markdown("Upload audio from disk or record from microphone for recognition")
96
- language = gr.inputs.Radio(label="Language", choices=list(models.keys()))
 
 
 
 
 
97
 
98
  with gr.Tabs():
99
  with gr.TabItem("Upload from disk"):
 
93
 
94
  with demo:
95
  gr.Markdown("Upload audio from disk or record from microphone for recognition")
96
+ language_choices = list(models.keys())
97
+ language = gr.inputs.Radio(
98
+ label="Language",
99
+ choices=language_choices,
100
+ value=language_choices[0],
101
+ )
102
 
103
  with gr.Tabs():
104
  with gr.TabItem("Upload from disk"):