mtyrrell commited on
Commit
da5d216
1 Parent(s): fcaa14b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -258,16 +258,16 @@ else:
258
  client = InferenceClient()
259
 
260
 
261
- text = st.text_area('Enter your question in the text box below using natural language or select an example from above:', value=selected_example)
262
 
263
- # if selected_example == "-":
264
- # text = st.text_area('Enter your question in the text box below using natural language or select an example from above:')
265
- # else:
266
- # text = st.text_area('Enter your question in the text box below using natural language or select an example from above:', value=selected_example)
 
267
 
268
 
269
  if st.button('Submit'):
270
- run_query(text, country=country, model_sel=model_sel)
271
 
272
 
273
 
 
258
  client = InferenceClient()
259
 
260
 
 
261
 
262
+
263
+ if selected_example == "-":
264
+ text = st.text_area('Enter your question in the text box below using natural language or select an example from above:')
265
+ else:
266
+ text = st.text_area('Enter your question in the text box below using natural language or select an example from above:', value=selected_example)
267
 
268
 
269
  if st.button('Submit'):
270
+ run_query(input_text = text, country=country, model_sel=model_sel)
271
 
272
 
273