Sasidhar commited on
Commit
21879cd
·
1 Parent(s): 4cf40c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.5:
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'])