Spaces:
Build error
Build error
removed gr row
Browse files
app.py
CHANGED
@@ -380,10 +380,9 @@ with block:
|
|
380 |
|
381 |
Choose a language from the dropdown, record your voice and select `Submit`.''')
|
382 |
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
output_pred = gr.Label(num_top_classes=5)
|
387 |
submit = gr.Button('Submit')
|
388 |
submit.click(make_inference, inputs = [language_choice,input_audio], outputs = [output_pred])
|
389 |
|
|
|
380 |
|
381 |
Choose a language from the dropdown, record your voice and select `Submit`.''')
|
382 |
|
383 |
+
language_choice = gr.Dropdown(["Choose language","Igbo", "Oshiwambo", "Yoruba","Oromo","Shona","Rundi","MULTILINGUAL"],label="Choose language",default="Choose language")
|
384 |
+
input_audio = gr.Audio(source="microphone",label='Record your voice',type='filepath')
|
385 |
+
output_pred = gr.Label(num_top_classes=5)
|
|
|
386 |
submit = gr.Button('Submit')
|
387 |
submit.click(make_inference, inputs = [language_choice,input_audio], outputs = [output_pred])
|
388 |
|