xf3227 commited on
Commit
d217981
·
1 Parent(s): 991df54
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,12 +50,12 @@ with st.form("json_input_form"):
50
  left_col, middle_col, right_col = st.columns([3, 4, 1])
51
 
52
  with left_col:
53
- example_button = st.form_submit_button("Random NACC Example")
54
 
55
  with right_col:
56
  submit_button = st.form_submit_button("Predict")
57
 
58
- if example_button:
59
  idx = random.randint(0, len(dat_tst) - 1)
60
  example = dat_tst[idx][0]
61
  st.session_state.input_text = json.dumps(example)
 
50
  left_col, middle_col, right_col = st.columns([3, 4, 1])
51
 
52
  with left_col:
53
+ sample_button = st.form_submit_button("Random NACC Case")
54
 
55
  with right_col:
56
  submit_button = st.form_submit_button("Predict")
57
 
58
+ if sample_button:
59
  idx = random.randint(0, len(dat_tst) - 1)
60
  example = dat_tst[idx][0]
61
  st.session_state.input_text = json.dumps(example)