seduerr commited on
Commit
7d51c70
β€’
1 Parent(s): 190f036
Files changed (2) hide show
  1. README.md +6 -6
  2. app.py +1 -2
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
- title: Communicaite
3
- emoji: πŸ“Š
4
- colorFrom: green
5
- colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 3.0.9
8
  app_file: app.py
9
  pinned: false
10
- license: afl-3.0
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