updated app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from chatbot import process_query
|
| 3 |
|
| 4 |
st.title("Kivy Chatbot Backend")
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
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)
|