imSleepy commited on
Commit
4e54d88
1 Parent(s): c0b6228

reverted back

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -1,12 +1,10 @@
1
  import streamlit as st
2
- from chatbot import process_query
3
 
4
- user_input = st.query_params.get("user_input", [""])[0]
5
 
6
- if user_input:
7
- response = process_query(user_input)
8
- # Display as JSON for HTTP GET request
9
- st.json({"response": response})
10
- else:
11
- st.title("Chatbot")
12
- st.write("Enter a query in the URL as ?user_input=your_question to get a JSON response.")
 
1
  import streamlit as st
2
+ from chatbot import process_query
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}")