Download task_039/environment/code/content_safety.go from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_039/environment/code/content_safety.go
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_039/environment/code/content_safety.go
-
curl -L -o content_safety.go https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_039/environment/code/content_safety.go
421 Bytes
| package contentsafety | |
| type AuditEntry struct { | |
| ContentType string | |
| Text string | |
| Word string | |
| } | |
| type Filter struct{} | |
| func NewFilter(words []string) *Filter { | |
| return &Filter{} | |
| } | |
| func (f *Filter) SetWords(words []string) {} | |
| func (f *Filter) Validate(contentType string, text string) error { | |
| return nil | |
| } | |
| func (f *Filter) AuditLog() []AuditEntry { | |
| return nil | |
| } | |