Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,9 @@ with gr.Blocks(css="body {font-family: monospace; text-align: center; color: #3A
|
|
| 31 |
|
| 32 |
checkbox_list = []
|
| 33 |
with gr.Row():
|
| 34 |
-
for i in range(0, len(symptoms),
|
| 35 |
with gr.Column():
|
| 36 |
-
for j in range(
|
| 37 |
if i + j < len(symptoms):
|
| 38 |
checkbox_list.append(gr.Checkbox(label=symptoms[i + j], value=False))
|
| 39 |
|
|
@@ -42,4 +42,4 @@ with gr.Blocks(css="body {font-family: monospace; text-align: center; color: #3A
|
|
| 42 |
|
| 43 |
submit_button.click(fn=predict_stroke_risk, inputs=checkbox_list, outputs=output_text)
|
| 44 |
|
| 45 |
-
demo.launch()
|
|
|
|
| 31 |
|
| 32 |
checkbox_list = []
|
| 33 |
with gr.Row():
|
| 34 |
+
for i in range(0, len(symptoms), 5): # 5 symptoms per column
|
| 35 |
with gr.Column():
|
| 36 |
+
for j in range(5):
|
| 37 |
if i + j < len(symptoms):
|
| 38 |
checkbox_list.append(gr.Checkbox(label=symptoms[i + j], value=False))
|
| 39 |
|
|
|
|
| 42 |
|
| 43 |
submit_button.click(fn=predict_stroke_risk, inputs=checkbox_list, outputs=output_text)
|
| 44 |
|
| 45 |
+
demo.launch()
|