tnt306 commited on
Commit
787f98f
·
1 Parent(s): bdb48a4
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -67,7 +67,11 @@ with gr.Blocks() as demo:
67
 
68
  # Choose a patient to predict.
69
  patient_1_input_btn.click(fn=predict, inputs=None, outputs=result, api_name="predict")
70
- patient_1_download_btn.click(fn=download_patient, inputs=None, outputs=[patient_1_download_btn])
 
 
 
 
71
 
72
 
73
  demo.launch(debug=True)
 
67
 
68
  # Choose a patient to predict.
69
  patient_1_input_btn.click(fn=predict, inputs=None, outputs=result, api_name="predict")
70
+
71
+ # Download a patient ehr profile.
72
+ patient_1_download_btn.click(fn=download_patient, inputs=[patient_1_download_btn], outputs=[patient_1_download_btn])
73
+ patient_2_download_btn.click(fn=download_patient, inputs=[patient_2_download_btn], outputs=[patient_2_download_btn])
74
+ patient_3_download_btn.click(fn=download_patient, inputs=[patient_3_download_btn], outputs=[patient_3_download_btn])
75
 
76
 
77
  demo.launch(debug=True)