File size: 279 Bytes
2a3c721
ae172be
2a3c721
 
 
ae172be
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import streamlit as st
from chatbot import process_query

st.title("Kivy Chatbot Backend")

# Check if a request is a POST
user_input = st.experimental_get_query_params().get("user_input", [None])[0]

if user_input:
    response = process_query(user_input)
    st.write(response)