reverted back
Browse files
app.py
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
-
from chatbot import process_query
|
3 |
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
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}")
|
|
|
|