Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ if source == "I want to input some text":
|
|
40 |
question_answerer = question_model()
|
41 |
with st.spinner(text="Getting answer..."):
|
42 |
answer = question_answerer(context=context, question=question)
|
43 |
-
|
44 |
|
45 |
st.text(answer)
|
46 |
elif source == "I want to upload a file":
|
|
|
40 |
question_answerer = question_model()
|
41 |
with st.spinner(text="Getting answer..."):
|
42 |
answer = question_answerer(context=context, question=question)
|
43 |
+
answer = answer["answer"]
|
44 |
|
45 |
st.text(answer)
|
46 |
elif source == "I want to upload a file":
|