shripadbhat commited on
Commit
8d22985
1 Parent(s): 805a7d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,14 +3,14 @@ from question_answering import QuestionAnswering
3
 
4
  st.title('Document Question Answering System')
5
  st.write("Loading the models...")
6
- my_bar = st.progress(10)
7
  qa = QuestionAnswering()
8
- my_bar.progress(100)
9
  st.write('Models Loaded')
10
 
11
- query = st.text_input("Query")
12
  document_text = st.text_area("Document Text", "", height=100)
13
 
 
 
 
14
  if st.button("Get Answers From Document"):
15
 
16
  st.markdown(qa.fetch_answers(query, document_text))
 
3
 
4
  st.title('Document Question Answering System')
5
  st.write("Loading the models...")
 
6
  qa = QuestionAnswering()
 
7
  st.write('Models Loaded')
8
 
 
9
  document_text = st.text_area("Document Text", "", height=100)
10
 
11
+ query = st.text_input("Query")
12
+
13
+
14
  if st.button("Get Answers From Document"):
15
 
16
  st.markdown(qa.fetch_answers(query, document_text))