shripadbhat commited on
Commit
41918c9
1 Parent(s): 661217b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -12,7 +12,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))
 
 
 
 
17
 
18
 
 
12
 
13
 
14
  if st.button("Get Answers From Document"):
15
+ answers_lines = qa.fetch_answers(query, document_text).splitlines()
16
+ answer_first = answers_lines[0]
17
+ reference_first = answers_lines[1]
18
+ st.header("ANSWER: "+answer_first)
19
+ st.subheader("REFERENCE: "+reference_first)
20
+ #st.markdown()
21
 
22