Spaces:
Runtime error
Runtime error
import streamlit as st | |
from question_answering import QuestionAnswering | |
#st.write("Loading the models...") | |
qa = QuestionAnswering() | |
#st.write('Models Loaded') | |
st.title('Document Question Answering System') | |
document_text = st.text_area("Document Text", "", height=100) | |
query = st.text_input("Query") | |
if st.button("Get Answers From Document"): | |
st.markdown(qa.fetch_answers(query, document_text)) | |