Spaces:
Sleeping
Sleeping
Commit ·
017054b
1
Parent(s): 79b1448
FINAL FIX
Browse files- openenv_env.py +5 -20
openenv_env.py
CHANGED
|
@@ -2,26 +2,11 @@ from openenv import Env
|
|
| 2 |
|
| 3 |
env = Env()
|
| 4 |
|
| 5 |
-
def grader(output
|
| 6 |
-
return 0.5
|
| 7 |
|
| 8 |
env.tasks = [
|
| 9 |
-
{
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
"expected_output": "food",
|
| 13 |
-
"grader": grader,
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"id": "task-2",
|
| 17 |
-
"prompt": "clothes",
|
| 18 |
-
"expected_output": "clothes",
|
| 19 |
-
"grader": grader,
|
| 20 |
-
},
|
| 21 |
-
{
|
| 22 |
-
"id": "task-3",
|
| 23 |
-
"prompt": "books",
|
| 24 |
-
"expected_output": "books",
|
| 25 |
-
"grader": grader,
|
| 26 |
-
},
|
| 27 |
]
|
|
|
|
| 2 |
|
| 3 |
env = Env()
|
| 4 |
|
| 5 |
+
def grader(output, expected):
|
| 6 |
+
return 0.5
|
| 7 |
|
| 8 |
env.tasks = [
|
| 9 |
+
{"id": "task-1", "prompt": "a", "expected_output": "a", "grader": grader},
|
| 10 |
+
{"id": "task-2", "prompt": "b", "expected_output": "b", "grader": grader},
|
| 11 |
+
{"id": "task-3", "prompt": "c", "expected_output": "c", "grader": grader},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
]
|