Khriis commited on
Commit
ad480fe
verified
1 Parent(s): f22e9cb

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +6 -1
handler.py CHANGED
@@ -147,7 +147,12 @@ class EndpointHandler:
147
  if isinstance(current_preds, dict):
148
  current_preds = [current_preds]
149
 
150
- MIN_SPAN_SCORE = 0.5 # tune this
 
 
 
 
 
151
 
152
  filtered_preds = [
153
  p for p in current_preds
 
147
  if isinstance(current_preds, dict):
148
  current_preds = [current_preds]
149
 
150
+ logger.info(
151
+ "RECCON raw spans (answer, score): %s",
152
+ [(p.get("answer"), round(p.get("score", 0.0), 3)) for p in current_preds[:5]]
153
+ )
154
+
155
+ MIN_SPAN_SCORE = 0.25 # tune this
156
 
157
  filtered_preds = [
158
  p for p in current_preds