Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def main(audio: str, doctor_name: str, location: str) -> list:
|
|
126 |
|
127 |
return answers_list
|
128 |
|
129 |
-
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,
|
130 |
current_datetime = datetime.now().isoformat()
|
131 |
answers_dict = {
|
132 |
"Doctor’s Name": doctor_name,
|
@@ -254,7 +254,7 @@ with gr.Blocks() as demo:
|
|
254 |
save_button = gr.Button("Save Form")
|
255 |
save_output = gr.HTML(label="Save Output")
|
256 |
|
257 |
-
def handle_submission(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,
|
258 |
return save_answers(doctor_name, location, patient_name, age, gender, chief_complaint, medical_history, dental_history, clinical_findings, treatment_plan, referred_to,Calculus, stains)
|
259 |
|
260 |
save_button.click(
|
|
|
126 |
|
127 |
return answers_list
|
128 |
|
129 |
+
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:
|
130 |
current_datetime = datetime.now().isoformat()
|
131 |
answers_dict = {
|
132 |
"Doctor’s Name": doctor_name,
|
|
|
254 |
save_button = gr.Button("Save Form")
|
255 |
save_output = gr.HTML(label="Save Output")
|
256 |
|
257 |
+
def handle_submission(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):
|
258 |
return save_answers(doctor_name, location, patient_name, age, gender, chief_complaint, medical_history, dental_history, clinical_findings, treatment_plan, referred_to,Calculus, stains)
|
259 |
|
260 |
save_button.click(
|