OOlajide commited on
Commit
e28154f
1 Parent(s): be5ed7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ if option == "Extractive question answering":
46
  with st.spinner(text="Getting answer..."):
47
  answer = question_answerer(context=context, question=question)
48
  answer = answer["answer"]
49
- st.text(answer)
50
  elif source == "I want to upload a file":
51
  uploaded_file = st.file_uploader("Choose a .txt file to upload", type=["txt"])
52
  if uploaded_file is not None:
@@ -59,7 +59,7 @@ if option == "Extractive question answering":
59
  with st.spinner(text="Getting answer..."):
60
  answer = question_answerer(context=context, question=question)
61
  answer = answer["answer"]
62
- st.write(f"Answer ---> {answer}")
63
 
64
  elif option == 'Text summarization':
65
  st.markdown("<h2 style='text-align: center; color:red;'>Summarize text</h2>", unsafe_allow_html=True)
 
46
  with st.spinner(text="Getting answer..."):
47
  answer = question_answerer(context=context, question=question)
48
  answer = answer["answer"]
49
+ st.markdown("<p style='color:red;'>{answer}</p>", unsafe_allow_html=True)
50
  elif source == "I want to upload a file":
51
  uploaded_file = st.file_uploader("Choose a .txt file to upload", type=["txt"])
52
  if uploaded_file is not None:
 
59
  with st.spinner(text="Getting answer..."):
60
  answer = question_answerer(context=context, question=question)
61
  answer = answer["answer"]
62
+ st.text(answer)
63
 
64
  elif option == 'Text summarization':
65
  st.markdown("<h2 style='text-align: center; color:red;'>Summarize text</h2>", unsafe_allow_html=True)