Spaces:
Configuration error
Configuration error
File size: 325 Bytes
d705216 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import streamlit as st
from main import qa
st.title('Chatbot')
user_input = st.text_input("Enter your question here:")
if st.button('Submit'):
if user_input:
response = qa({"question": user_input})
st.write('Chatbot:', response.get('answer', ''))
else:
st.write('Please enter a question.')
|