aidan-o-brien commited on
Commit
a1d41c3
1 Parent(s): 124247d

changed iteration treshold

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def remove_substring_iter(pipeline, question, context):
74
  # Update context
75
  context, filtered_resp = iterate(resp, context)
76
  # If best score not above threshold, quit
77
- if filtered_resp[0]['score'] < 1e-3:
78
  break
79
  ret_resp.append(filtered_resp[0])
80
  return ret_resp
74
  # Update context
75
  context, filtered_resp = iterate(resp, context)
76
  # If best score not above threshold, quit
77
+ if filtered_resp[0]['score'] < 1e-2:
78
  break
79
  ret_resp.append(filtered_resp[0])
80
  return ret_resp