pfialho commited on
Commit
3416a77
·
verified ·
1 Parent(s): 1b73302

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -10,8 +10,11 @@ app_title = "Portuguese Counter Hate Speech Detection"
10
 
11
  app_description = """
12
  This prototype from the kNOwHATE project aims to classify a Portuguese target sentence as either hate speech, counter hate speech or neutral, considering another sentence as context.
 
13
  We collected 24,739 YouTube comments and 29,846 tweets, annotated by experts, and trained our prototype on this data.
 
14
  We invite you to try it out. You can just enter a pair of sentences below, one as target and another as context, and submit it to see if the target is either hate speech, counter hate speech or neutral, relative to the context.
 
15
  For more, visit our [website](https://knowhate.eu) and [Hugging Face page](https://huggingface.co/knowhate).
16
  """
17
 
@@ -28,7 +31,6 @@ kw_to_hf = {"knowhate/counterhate-twitter-bertimbau": "neuralmind/bert-base-port
28
  "knowhate/counterhate-twitter-xlmrobertabase": "xlm-roberta-base",
29
  "knowhate/counterhate-twitter-bertbasemultilingualcased": "bert-base-multilingual-cased",
30
  "knowhate/counterhate-twitter-hateberttuga": "knowhate/hateberttuga"}
31
- # ./hate_bert_tuga/
32
 
33
  # 1 0 2
34
  app_examples = [
 
10
 
11
  app_description = """
12
  This prototype from the kNOwHATE project aims to classify a Portuguese target sentence as either hate speech, counter hate speech or neutral, considering another sentence as context.
13
+
14
  We collected 24,739 YouTube comments and 29,846 tweets, annotated by experts, and trained our prototype on this data.
15
+
16
  We invite you to try it out. You can just enter a pair of sentences below, one as target and another as context, and submit it to see if the target is either hate speech, counter hate speech or neutral, relative to the context.
17
+
18
  For more, visit our [website](https://knowhate.eu) and [Hugging Face page](https://huggingface.co/knowhate).
19
  """
20
 
 
31
  "knowhate/counterhate-twitter-xlmrobertabase": "xlm-roberta-base",
32
  "knowhate/counterhate-twitter-bertbasemultilingualcased": "bert-base-multilingual-cased",
33
  "knowhate/counterhate-twitter-hateberttuga": "knowhate/hateberttuga"}
 
34
 
35
  # 1 0 2
36
  app_examples = [