Kornel Szabo commited on
Commit
e74c2c9
·
1 Parent(s): 816b01d

Add new labels to result

Browse files
Files changed (1) hide show
  1. app.py +21 -2
app.py CHANGED
@@ -9,9 +9,9 @@ from transformers import (
9
  )
10
 
11
  labels = [
12
- 'agency',
13
  # 'humanComparison',
14
- 'hyperbole',
15
  # 'historyComparison',
16
  # 'unjustClaims',
17
  # 'deepSounding',
@@ -20,6 +20,24 @@ labels = [
20
  # 'performanceNumber',
21
  # 'inscrutable',
22
  # 'objective'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  ]
24
 
25
  models = {}
@@ -49,6 +67,7 @@ def predict(text):
49
  return preds
50
 
51
 
 
52
  examples = [
53
  "Machine Learning is at the forefront of education, replacing human jobs",
54
  "AI model leaves scientists confused",
 
9
  )
10
 
11
  labels = [
12
+ # 'agency',
13
  # 'humanComparison',
14
+ # 'hyperbole',
15
  # 'historyComparison',
16
  # 'unjustClaims',
17
  # 'deepSounding',
 
20
  # 'performanceNumber',
21
  # 'inscrutable',
22
  # 'objective'
23
+ "agency",
24
+ "suggestiveImagery",
25
+ "comparisonWithHumanIntelligence",
26
+ "comparisonWithHumanSkills",
27
+ "hyperbole",
28
+ "uncriticalHistoryComparison",
29
+ "unjustifiedClaimsAboutFuture",
30
+ "falseClaimsAboutProgress",
31
+ "incorrectClaimsAboutStudyReport",
32
+ "deepSoundingTermsForBanalities",
33
+ "treatingSpokespeopleAsNeutral",
34
+ "repeatingPRTerms",
35
+ "noDiscussionOfLimitations",
36
+ "deEmphasizingLimitations",
37
+ "limitationsAddressedBySkeptics",
38
+ "downplayingHumanLabour",
39
+ "performanceNumbersWithoutCaveats",
40
+ "inscrutability",
41
  ]
42
 
43
  models = {}
 
67
  return preds
68
 
69
 
70
+ d
71
  examples = [
72
  "Machine Learning is at the forefront of education, replacing human jobs",
73
  "AI model leaves scientists confused",