Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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:
|