yachay commited on
Commit
71e2ad9
·
1 Parent(s): 232729a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,10 +109,10 @@ st.title('GeoTagging using ByT5')
109
  st.write('Examples:')
110
  for example in example_texts:
111
  if st.button(f"{example}"):
112
- set_example_text(example)
113
 
114
  # Get text input and update session state when it's modified
115
- text_input = st.text_input('Enter your text:', value=st.session_state.text_input_state)
116
  if text_input != st.session_state.text_input_state:
117
  st.session_state.text_input_state = text_input
118
 
 
109
  st.write('Examples:')
110
  for example in example_texts:
111
  if st.button(f"{example}"):
112
+ st.session_state.text_input_state = example
113
 
114
  # Get text input and update session state when it's modified
115
+ text_input = st.text_input('Enter your text:', value=st.session_state.text_input_state, key='my_text_input)
116
  if text_input != st.session_state.text_input_state:
117
  st.session_state.text_input_state = text_input
118