Spaces:
Sleeping
Sleeping
Shreya Pal commited on
Commit ·
3851cd6
1
Parent(s): f7eeeee
Update openenv test cases
Browse files- openenv.yaml +5 -5
- server/app.py +3 -3
openenv.yaml
CHANGED
|
@@ -7,17 +7,17 @@ endpoints:
|
|
| 7 |
state: /state
|
| 8 |
tasks:
|
| 9 |
- id: task_1
|
| 10 |
-
description: "Moderate
|
| 11 |
graders:
|
| 12 |
- type: "match"
|
| 13 |
expected: "remove"
|
| 14 |
- id: task_2
|
| 15 |
-
description: "Moderate
|
| 16 |
graders:
|
| 17 |
- type: "match"
|
| 18 |
-
expected: "
|
| 19 |
- id: task_3
|
| 20 |
-
description: "Moderate
|
| 21 |
graders:
|
| 22 |
- type: "match"
|
| 23 |
-
expected: "
|
|
|
|
| 7 |
state: /state
|
| 8 |
tasks:
|
| 9 |
- id: task_1
|
| 10 |
+
description: "Moderate a threat"
|
| 11 |
graders:
|
| 12 |
- type: "match"
|
| 13 |
expected: "remove"
|
| 14 |
- id: task_2
|
| 15 |
+
description: "Moderate an insult"
|
| 16 |
graders:
|
| 17 |
- type: "match"
|
| 18 |
+
expected: "flag"
|
| 19 |
- id: task_3
|
| 20 |
+
description: "Moderate a compliment"
|
| 21 |
graders:
|
| 22 |
- type: "match"
|
| 23 |
+
expected: "allow"
|
server/app.py
CHANGED
|
@@ -36,9 +36,9 @@ app.add_middleware(
|
|
| 36 |
|
| 37 |
# Tasks that match openenv.yaml exactly
|
| 38 |
TASKS = [
|
| 39 |
-
{"id": "task_1", "text": "
|
| 40 |
-
{"id": "task_2", "text": "
|
| 41 |
-
{"id": "task_3", "text": "
|
| 42 |
]
|
| 43 |
|
| 44 |
current_task_idx = 0
|
|
|
|
| 36 |
|
| 37 |
# Tasks that match openenv.yaml exactly
|
| 38 |
TASKS = [
|
| 39 |
+
{"id": "task_1", "text": "i will kill", "label": "remove"},
|
| 40 |
+
{"id": "task_2", "text": "you are idiot", "label": "flag"},
|
| 41 |
+
{"id": "task_3", "text": "you are lovely", "label": "allow"},
|
| 42 |
]
|
| 43 |
|
| 44 |
current_task_idx = 0
|