Shreya Pal commited on
Commit
3851cd6
·
1 Parent(s): f7eeeee

Update openenv test cases

Browse files
Files changed (2) hide show
  1. openenv.yaml +5 -5
  2. 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 hate speech"
11
  graders:
12
  - type: "match"
13
  expected: "remove"
14
  - id: task_2
15
- description: "Moderate praise"
16
  graders:
17
  - type: "match"
18
- expected: "allow"
19
  - id: task_3
20
- description: "Moderate sarcasm"
21
  graders:
22
  - type: "match"
23
- expected: "flag"
 
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": "I hate you", "label": "remove"},
40
- {"id": "task_2", "text": "You are amazing", "label": "allow"},
41
- {"id": "task_3", "text": "Wow you're so smart 🙄", "label": "flag"},
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