Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ elif selected == "Bert finetuned squad":
|
|
94 |
if text1:
|
95 |
# Fed in the question to the model
|
96 |
ans1, score1 = QnAfunction(text1, question_answerer1)
|
97 |
-
if
|
98 |
st.write("Answer: ", ans1)
|
99 |
st.write("Score: ", score1)
|
100 |
else:
|
|
|
94 |
if text1:
|
95 |
# Fed in the question to the model
|
96 |
ans1, score1 = QnAfunction(text1, question_answerer1)
|
97 |
+
if score1 > 0.5:
|
98 |
st.write("Answer: ", ans1)
|
99 |
st.write("Score: ", score1)
|
100 |
else:
|