ok
Browse files
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 |
-
|
54 |
|
55 |
with right_col:
|
56 |
submit_button = st.form_submit_button("Predict")
|
57 |
|
58 |
-
if
|
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)
|