NikilDGr8 commited on
Commit
0cc644a
·
verified ·
1 Parent(s): 66dc7aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,7 +113,7 @@ def handle_transcription(audio: str, doctor_name: str, location: str) -> list:
113
  answers[-2] = doctor_name
114
  answers[-1] = location
115
 
116
- return answers
117
 
118
  def save_answers(doctor_name: str, location: str, patient_name: str, age: str, gender: str, chief_complaint: str, medical_history: str, dental_history: str, clinical_findings: str, treatment_plan: str, referred_to: str, calculus: str, stains: str) -> str:
119
  current_datetime = datetime.now().isoformat()
@@ -227,7 +227,7 @@ with gr.Blocks() as demo:
227
  # Save the form data to Supabase when the save button is clicked
228
  save_button.click(
229
  fn=save_answers,
230
- inputs=[doctor_name_input, location_input] + textboxes_left + textboxes_right,
231
  outputs=[oha_output]
232
  )
233
 
 
113
  answers[-2] = doctor_name
114
  answers[-1] = location
115
 
116
+ return answers + [""] * (14 - len(answers))
117
 
118
  def save_answers(doctor_name: str, location: str, patient_name: str, age: str, gender: str, chief_complaint: str, medical_history: str, dental_history: str, clinical_findings: str, treatment_plan: str, referred_to: str, calculus: str, stains: str) -> str:
119
  current_datetime = datetime.now().isoformat()
 
227
  # Save the form data to Supabase when the save button is clicked
228
  save_button.click(
229
  fn=save_answers,
230
+ inputs=[doctor_name_input, location_input] + [patient_name_input] + textboxes_left + textboxes_right,
231
  outputs=[oha_output]
232
  )
233