Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -276,8 +276,8 @@ elif selected_menu == "Detected Barriers":
|
|
276 |
if question_text:
|
277 |
result = pipeline_qa(question=question_text, context=context)
|
278 |
st.subheader(barrier)
|
279 |
-
st.text(result)
|
280 |
-
if result['score'] < 0.
|
281 |
st.text("Not Found")
|
282 |
else:
|
283 |
st.text(result['answer'])
|
|
|
276 |
if question_text:
|
277 |
result = pipeline_qa(question=question_text, context=context)
|
278 |
st.subheader(barrier)
|
279 |
+
#st.text(result)
|
280 |
+
if result['score'] < 0.3:
|
281 |
st.text("Not Found")
|
282 |
else:
|
283 |
st.text(result['answer'])
|