Spaces:
Sleeping
Sleeping
ariankhalfani
commited on
Commit
•
9a6086b
1
Parent(s):
26a7fa8
Update app.py
Browse files
app.py
CHANGED
@@ -223,8 +223,11 @@ with gr.Blocks() as demo:
|
|
223 |
download_uploaded_btn = gr.Button("Download Uploaded Images")
|
224 |
download_predicted_btn = gr.Button("Download Predicted Images")
|
225 |
|
|
|
|
|
|
|
226 |
submit_btn.click(fn=interface, inputs=[name, age, medical_record, sex, input_image], outputs=[output_image, raw_result])
|
227 |
-
download_html_btn.click(fn=save_patient_info_to_html, inputs=[name, age, medical_record, sex, raw_result], outputs=
|
228 |
download_uploaded_btn.click(fn=download_uploaded_folder, outputs="file")
|
229 |
download_predicted_btn.click(fn=download_predicted_folder, outputs="file")
|
230 |
|
|
|
223 |
download_uploaded_btn = gr.Button("Download Uploaded Images")
|
224 |
download_predicted_btn = gr.Button("Download Predicted Images")
|
225 |
|
226 |
+
# Add a file download output component
|
227 |
+
patient_info_file = gr.File(label="Patient Information HTML File")
|
228 |
+
|
229 |
submit_btn.click(fn=interface, inputs=[name, age, medical_record, sex, input_image], outputs=[output_image, raw_result])
|
230 |
+
download_html_btn.click(fn=save_patient_info_to_html, inputs=[name, age, medical_record, sex, raw_result], outputs=patient_info_file)
|
231 |
download_uploaded_btn.click(fn=download_uploaded_folder, outputs="file")
|
232 |
download_predicted_btn.click(fn=download_predicted_folder, outputs="file")
|
233 |
|