Spaces:
Sleeping
Sleeping
import streamlit as st | |
def get_text(): #from the UI App | |
input_text = st.text_input("Enter a question: ", key="input") | |
return input_text | |
#UIApp starts here | |
st.set_page_config(page_title="LangChain Demo - Simple Question Answering App", page_icon=":robot:") | |
st.header("Simple Question Answering App") | |
user_input=get_text() | |
response=load_answer(user_input) | |
submit=st.button('Generate') | |
if submit: | |
st.subheader("Answer: ") | |
st.write(response) |