Spaces:
Build error
Build error
init
Browse files
README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.0.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license:
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
1 |
---
|
2 |
+
title: Ethical_data
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.0.3
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import re
|
3 |
-
|
4 |
from services.anonymizer import anonymize
|
5 |
from services.hate_speech import classify_hatespeech
|
6 |
from services.cola import classify_correctness
|
@@ -9,7 +9,6 @@ from services.bad_words import identify_bad_words
|
|
9 |
examples = ['John is a son of a.', 'John a wonderful item', 'The dog is a bastard.',
|
10 |
'The dog a cat.', 'It was Peter Thiel from PayPal.']
|
11 |
|
12 |
-
|
13 |
def check_ethical(text):
|
14 |
|
15 |
# simple heuristic based on offensive word list by cmu.edu
|
1 |
import gradio as gr
|
2 |
import re
|
3 |
+
|
4 |
from services.anonymizer import anonymize
|
5 |
from services.hate_speech import classify_hatespeech
|
6 |
from services.cola import classify_correctness
|
9 |
examples = ['John is a son of a.', 'John a wonderful item', 'The dog is a bastard.',
|
10 |
'The dog a cat.', 'It was Peter Thiel from PayPal.']
|
11 |
|
|
|
12 |
def check_ethical(text):
|
13 |
|
14 |
# simple heuristic based on offensive word list by cmu.edu
|