OOlajide commited on
Commit
be5ed7b
·
1 Parent(s): a3068be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.write(f"Answer ---> {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:
 
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: