Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,8 @@ 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 |
if st.session_state.text_input:
|
122 |
location = geolocate_text_byt5(st.session_state.text_input)
|
123 |
st.write('Predicted Location: ', location)
|
|
|
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 |
+
st.session_state.text_input = st.session_state.text_modified
|
121 |
+
|
122 |
if st.session_state.text_input:
|
123 |
location = geolocate_text_byt5(st.session_state.text_input)
|
124 |
st.write('Predicted Location: ', location)
|