Spaces:
Sleeping
Sleeping
Commit ·
0ac8fe8
1
Parent(s): 81abf49
fixed new error
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -208,7 +208,7 @@ def run_episode(client: OpenAI, difficulty: str, task_id: str) -> dict:
|
|
| 208 |
|
| 209 |
# Calculate score
|
| 210 |
total_reward = sum(rewards)
|
| 211 |
-
score = min(max(total_reward / MAX_STEPS, 0.
|
| 212 |
success = score >= SUCCESS_SCORE_THRESHOLD
|
| 213 |
|
| 214 |
except Exception as e:
|
|
|
|
| 208 |
|
| 209 |
# Calculate score
|
| 210 |
total_reward = sum(rewards)
|
| 211 |
+
score = min(max(total_reward / MAX_STEPS, 0.001), 0.999)
|
| 212 |
success = score >= SUCCESS_SCORE_THRESHOLD
|
| 213 |
|
| 214 |
except Exception as e:
|