ariankhalfani commited on
Commit
b957622
1 Parent(s): 0119dc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -169,7 +169,7 @@ with gr.Blocks(theme=theme) as demo:
169
  outputs=[db_response, debug_glaucoma]
170
  )
171
 
172
- with gr.Tab("Chatbot"):
173
  with gr.Row():
174
  input_type_dropdown = gr.Dropdown(label="Input Type", choices=["Voice", "Text"], value="Voice")
175
  tts_model_dropdown = gr.Dropdown(label="TTS Model", choices=["Ryan (ESPnet)", "Nithu (Custom)"], value="Nithu (Custom)")
@@ -189,7 +189,7 @@ with gr.Blocks(theme=theme) as demo:
189
  db_status_textbox = gr.Textbox(label="Database Status", interactive=False)
190
 
191
  input_type_dropdown.change(
192
- fn=toggle_input_visibility,
193
  inputs=[input_type_dropdown],
194
  outputs=[audio_input, text_input]
195
  )
 
169
  outputs=[db_response, debug_glaucoma]
170
  )
171
 
172
+ with gr.Tab("Chatbot"):
173
  with gr.Row():
174
  input_type_dropdown = gr.Dropdown(label="Input Type", choices=["Voice", "Text"], value="Voice")
175
  tts_model_dropdown = gr.Dropdown(label="TTS Model", choices=["Ryan (ESPnet)", "Nithu (Custom)"], value="Nithu (Custom)")
 
189
  db_status_textbox = gr.Textbox(label="Database Status", interactive=False)
190
 
191
  input_type_dropdown.change(
192
+ fn=toggle_visibility,
193
  inputs=[input_type_dropdown],
194
  outputs=[audio_input, text_input]
195
  )