NeerAbhy commited on
Commit
88cb997
·
verified ·
1 Parent(s): 913be7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -124,11 +124,13 @@ with demo:
124
  gr.Markdown("Speech analyzer")
125
  audio = gr.Audio(type="filepath", label = "Upload a file")
126
  text = gr.Textbox()
127
- source_lang = gr.Radio(label="Source lang", choices=list(lang_id.keys()))
128
  gr.Examples(examples = list(lang_id.keys()),
129
  inputs=[
130
  source_lang])
131
  b1 = gr.Button("convert to text")
 
 
132
  b1.click(audio_a_text, inputs=audio, outputs=text)
133
 
134
  b2 = gr.Button("Classification of speech")
 
124
  gr.Markdown("Speech analyzer")
125
  audio = gr.Audio(type="filepath", label = "Upload a file")
126
  text = gr.Textbox()
127
+ source_lang = gr.Dropdown(label="Source lang", choices=list(lang_id.keys()))
128
  gr.Examples(examples = list(lang_id.keys()),
129
  inputs=[
130
  source_lang])
131
  b1 = gr.Button("convert to text")
132
+ b3 = gr.Button("select audio")
133
+ b3.click(inputs = source_Lang)
134
  b1.click(audio_a_text, inputs=audio, outputs=text)
135
 
136
  b2 = gr.Button("Classification of speech")