ariankhalfani commited on
Commit
b4df677
1 Parent(s): 9c72adb

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +2 -2
chatbot.py CHANGED
@@ -200,9 +200,9 @@ def get_aggregated_patient_history(patient_data, details):
200
  # Toggle visibility of input elements based on input type
201
  def toggle_visibility(input_type):
202
  if input_type == "Voice":
203
- return gr.update(visible=True), gr.update(visible=False)
204
  else:
205
- return gr.update(visible=False), gr.update(visible=True)
206
 
207
  def cleanup_response(response):
208
  # Extract only the part after "Answer:" and remove any trailing spaces
 
200
  # Toggle visibility of input elements based on input type
201
  def toggle_visibility(input_type):
202
  if input_type == "Voice":
203
+ return gr.update(visible=True), gr.update(visible(False))
204
  else:
205
+ return gr.update(visible=False), gr.update(visible(True))
206
 
207
  def cleanup_response(response):
208
  # Extract only the part after "Answer:" and remove any trailing spaces