Update handler.py
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|