Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,7 @@ if option == "Extractive question answering":
|
|
57 |
question_answerer = question_model()
|
58 |
with st.spinner(text="Getting answer..."):
|
59 |
answer = question_answerer(context=context, question=question)
|
|
|
60 |
st.write(f"Answer ---> {answer}")
|
61 |
|
62 |
elif option == 'Text summarization':
|
|
|
57 |
question_answerer = question_model()
|
58 |
with st.spinner(text="Getting answer..."):
|
59 |
answer = question_answerer(context=context, question=question)
|
60 |
+
answer = answer["answer"]
|
61 |
st.write(f"Answer ---> {answer}")
|
62 |
|
63 |
elif option == 'Text summarization':
|