Spaces:
Running
Running
Update app.py
Browse files
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 |
|