shripadbhat commited on
Commit
eb8b098
1 Parent(s): 8a010b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,13 +1,13 @@
1
  import streamlit as st
2
  from question_answering import QuestionAnswering
3
 
4
- #st.write("Loading the models...")
 
5
  qa = QuestionAnswering()
6
- #st.write('Models Loaded')
7
 
8
- st.title('Document Question Answering System')
9
- document_text = st.text_area("Document Text", "", height=100)
10
 
 
11
  query = st.text_input("Query")
12
 
13
 
@@ -17,7 +17,7 @@ if len(document_text.strip()) > 0 and len(query.strip()) > 0:
17
  answers_lines = qa.fetch_answers(query, document_text).splitlines()
18
  answer_first = answers_lines[0]
19
  reference_first = answers_lines[1]
20
- st.write('Check the answer...with reference text')
21
  st.header("ANSWER: "+answer_first)
22
  st.subheader("REFERENCE: "+reference_first)
23
  #st.markdown()
 
1
  import streamlit as st
2
  from question_answering import QuestionAnswering
3
 
4
+ st.title('Document Question Answering System')
5
+ st.write("Loading the models...")
6
  qa = QuestionAnswering()
7
+ st.write('Models Loaded')
8
 
 
 
9
 
10
+ document_text = st.text_area("Document Text", "", height=100)
11
  query = st.text_input("Query")
12
 
13
 
 
17
  answers_lines = qa.fetch_answers(query, document_text).splitlines()
18
  answer_first = answers_lines[0]
19
  reference_first = answers_lines[1]
20
+ st.write('Check the answer below...with reference text')
21
  st.header("ANSWER: "+answer_first)
22
  st.subheader("REFERENCE: "+reference_first)
23
  #st.markdown()