Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,7 +117,10 @@ for example in example_texts:
|
|
| 117 |
|
| 118 |
# Get text input and update session state when it's modified
|
| 119 |
st.session_state.text_modified = st.text_input('Enter your text:', value=st.session_state.text_input)
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
if st.session_state.text_input:
|
| 123 |
location = geolocate_text_byt5(st.session_state.text_input)
|
|
|
|
| 117 |
|
| 118 |
# Get text input and update session state when it's modified
|
| 119 |
st.session_state.text_modified = st.text_input('Enter your text:', value=st.session_state.text_input)
|
| 120 |
+
|
| 121 |
+
if st.button('Submit'):
|
| 122 |
+
st.session_state.text_input = st.session_state.text_modified
|
| 123 |
+
|
| 124 |
|
| 125 |
if st.session_state.text_input:
|
| 126 |
location = geolocate_text_byt5(st.session_state.text_input)
|