Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -270,7 +270,7 @@ async def run_task(task_id: str, client: OpenAI) -> dict:
|
|
| 270 |
|
| 271 |
finally:
|
| 272 |
# Clamp score to strictly (0, 1) to avoid 0.000 or 1.000 in .3f format
|
| 273 |
-
score = min(max(score, 0.001), 0.999)
|
| 274 |
log_end(success=success, steps=steps_taken, score=score, rewards=rewards)
|
| 275 |
|
| 276 |
return {"task_id": task_id, "score": score, "success": success}
|
|
|
|
| 270 |
|
| 271 |
finally:
|
| 272 |
# Clamp score to strictly (0, 1) to avoid 0.000 or 1.000 in .3f format
|
| 273 |
+
score = min(max(score, 0.001), 0.999)
|
| 274 |
log_end(success=success, steps=steps_taken, score=score, rewards=rewards)
|
| 275 |
|
| 276 |
return {"task_id": task_id, "score": score, "success": success}
|