File size: 410 Bytes
d24f707
5ad2a61
d24f707
661217b
5ad2a61
661217b
9842783
661217b
5ad2a61
b36e6d7
8d22985
 
 
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.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))