ANI00 commited on
Commit
f0129ac
·
verified ·
1 Parent(s): af65c6d

Add root yaml for HF Spaces build

Browse files
Files changed (1) hide show
  1. openenv.yaml +89 -0
openenv.yaml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: content-moderation-env
2
+ version: "1.0.0"
3
+ description: >
4
+ AI-powered content moderation environment. Agents triage text, social
5
+ posts, and multimodal content (including deepfake detection) across
6
+ three difficulty levels using the standard OpenEnv step/reset/state API.
7
+ author: openenv-participant
8
+ license: MIT
9
+
10
+ tasks:
11
+ - id: text_spam
12
+ difficulty: easy
13
+ description: Classify email/message content as spam or legitimate
14
+ content_type: text
15
+ num_items: 5
16
+ score_range: [0.0, 1.0]
17
+
18
+ - id: content_moderation
19
+ difficulty: medium
20
+ description: Multi-label social media content moderation
21
+ content_type: text
22
+ num_items: 5
23
+ score_range: [0.0, 1.0]
24
+
25
+ - id: deepfake_detection
26
+ difficulty: hard
27
+ description: Detect AI-manipulated/deepfake media and make moderation decisions
28
+ content_type: multimodal
29
+ num_items: 5
30
+ score_range: [0.0, 1.0]
31
+
32
+ action_space:
33
+ type: object
34
+ fields:
35
+ decision:
36
+ type: string
37
+ enum: [approve, reject, escalate, flag]
38
+ reason:
39
+ type: string
40
+ confidence:
41
+ type: float
42
+ range: [0.0, 1.0]
43
+ labels:
44
+ type: array
45
+ items: string
46
+ valid_values:
47
+ - spam
48
+ - scam
49
+ - phishing
50
+ - pharmaceutical_spam
51
+ - hate_speech
52
+ - violence
53
+ - harassment
54
+ - misinformation
55
+ - adult_content
56
+ - deepfake
57
+ - political_manipulation
58
+ - fraud
59
+
60
+ observation_space:
61
+ type: object
62
+ fields:
63
+ content_id: string
64
+ content_type: string
65
+ text: optional string
66
+ image_description: optional string
67
+ detector_score: optional float
68
+ metadata: object
69
+ step_num: integer
70
+ total_steps: integer
71
+
72
+ endpoints:
73
+ reset: POST /reset
74
+ step: POST /step
75
+ state: GET /state
76
+ close: POST /close
77
+ tasks: GET /tasks
78
+ health: GET /health
79
+
80
+ docker:
81
+ context: server
82
+ dockerfile: server/Dockerfile
83
+
84
+ huggingface:
85
+ space_sdk: docker
86
+ tags:
87
+ - openenv
88
+ - content-moderation
89
+ - deepfake-detection