Spaces:
Sleeping
Sleeping
Debug 13
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ import gradio as gr
|
|
39 |
def predict():
|
40 |
return {"Death": 0.9, "Alive": 0.1}
|
41 |
|
42 |
-
def download_patient():
|
43 |
-
return "
|
44 |
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Row():
|
@@ -51,7 +51,7 @@ with gr.Blocks() as demo:
|
|
51 |
with gr.Row():
|
52 |
with gr.Column(min_width=100):
|
53 |
patient_1_input_btn = gr.Button("Patient 1")
|
54 |
-
patient_1_download_btn = gr.DownloadButton("Download 1")
|
55 |
with gr.Column(min_width=100):
|
56 |
patient_2_input_btn = gr.Button("Patient 2")
|
57 |
patient_2_download_btn = gr.DownloadButton("Download 2")
|
|
|
39 |
def predict():
|
40 |
return {"Death": 0.9, "Alive": 0.1}
|
41 |
|
42 |
+
def download_patient(patient_id: str):
|
43 |
+
return f"Patient{patient_id}.csv"
|
44 |
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Row():
|
|
|
51 |
with gr.Row():
|
52 |
with gr.Column(min_width=100):
|
53 |
patient_1_input_btn = gr.Button("Patient 1")
|
54 |
+
patient_1_download_btn = gr.DownloadButton(label="Download 1", value="1")
|
55 |
with gr.Column(min_width=100):
|
56 |
patient_2_input_btn = gr.Button("Patient 2")
|
57 |
patient_2_download_btn = gr.DownloadButton("Download 2")
|