Update app.py
Browse files
app.py
CHANGED
@@ -33,5 +33,5 @@ if st.button('Run QA inference (get answer prediction)'):
|
|
33 |
st.write(f'Answer context (and score): ... _{answer_context}_ ... (score: {format(answer_score, ".3f")})')
|
34 |
|
35 |
st.write(f'Answer JSON: '); st.write(qa_result)
|
36 |
-
else:
|
37 |
st.write('Write some passage of text and a question'); st.stop()
|
|
|
33 |
st.write(f'Answer context (and score): ... _{answer_context}_ ... (score: {format(answer_score, ".3f")})')
|
34 |
|
35 |
st.write(f'Answer JSON: '); st.write(qa_result)
|
36 |
+
else: # empty question or paragraph
|
37 |
st.write('Write some passage of text and a question'); st.stop()
|