Spaces:
Runtime error
Runtime error
File size: 452 Bytes
d24f707 5ad2a61 d24f707 5e8df6f 1108b82 5ad2a61 9842783 1108b82 9842783 1108b82 5ad2a61 b36e6d7 00a0dbb 5ad2a61 00a0dbb d24f707 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
from question_answering import QuestionAnswering
st.title('Document Question Answering System')
st.write("Loading the models...")
my_bar = st.progress(10)
qa = QuestionAnswering()
my_bar.progress(100)
st.write('Models Loaded')
query = st.text_input("Query")
document_text = st.text_area("Document Text", "", height=100)
if st.button("Get Answers From Document"):
st.markdown(qa.fetch_answers(query, document_text))
|