attiquers commited on
Commit
6938a8c
·
verified ·
1 Parent(s): 302195e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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), 4):
35
  with gr.Column():
36
- for j in range(4):
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()