imSleepy commited on
Commit
45682b5
·
verified ·
1 Parent(s): ae172be

changed the parameter

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -3,9 +3,8 @@ from chatbot import process_query
3
 
4
  st.title("Kivy Chatbot Backend")
5
 
6
- # Check if a request is a POST
7
- user_input = st.experimental_get_query_params().get("user_input", [None])[0]
8
-
9
- if user_input:
10
- response = process_query(user_input)
11
- st.write(response)
 
3
 
4
  st.title("Kivy Chatbot Backend")
5
 
6
+ user_input = st.text_input("Ask a question:")
7
+ if st.button("Get Response"):
8
+ if user_input:
9
+ response = process_query(user_input)
10
+ st.write(f"Response: {response}")