Update app.py
Browse files
app.py
CHANGED
|
@@ -54,17 +54,17 @@ when he mistakenly rehydrates them with heavy water contaminated with atomic was
|
|
| 54 |
regularly used to recharge the Batcave s atomic pile . ''')
|
| 55 |
|
| 56 |
#-----------------------------------------------------------
|
| 57 |
-
|
| 58 |
-
|
| 59 |
|
| 60 |
-
#
|
| 61 |
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-
form_claim = st.form(key='my_claim')
|
| 66 |
-
form_claim.text_input(label='Enter your claim')
|
| 67 |
-
claim_text = form_claim.form_submit_button(label='Submit')
|
| 68 |
|
| 69 |
|
| 70 |
|
|
|
|
| 54 |
regularly used to recharge the Batcave s atomic pile . ''')
|
| 55 |
|
| 56 |
#-----------------------------------------------------------
|
| 57 |
+
def proc():
|
| 58 |
+
st.write(st.session_state.text_key)
|
| 59 |
|
| 60 |
+
# st.text_area('enter text', on_change=proc, key='text_key')
|
| 61 |
|
| 62 |
|
| 63 |
+
claim_text=st.text_area("Enter your claim:", on_change=proc, key='text_key')
|
| 64 |
|
| 65 |
+
# form_claim = st.form(key='my_claim')
|
| 66 |
+
# form_claim.text_input(label='Enter your claim')
|
| 67 |
+
# claim_text = form_claim.form_submit_button(label='Submit')
|
| 68 |
|
| 69 |
|
| 70 |
|