Medissa commited on
Commit
00d0dca
·
verified ·
1 Parent(s): a87fbf0

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. tasks/text.py +9 -0
tasks/text.py CHANGED
@@ -24,6 +24,15 @@ BINARY_MODEL = "Medissa/Roberta_Binary"
24
  TOKENIZER_MULTI_CLASS = "crarojasca/TaxonomyAugmentedCARDS"
25
  MULTI_CLASS_MODEL = "Medissa/Deberta_Taxonomy"
26
 
 
 
 
 
 
 
 
 
 
27
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
28
 
29
  from fastapi import APIRouter
 
24
  TOKENIZER_MULTI_CLASS = "crarojasca/TaxonomyAugmentedCARDS"
25
  MULTI_CLASS_MODEL = "Medissa/Deberta_Taxonomy"
26
 
27
+ ID2LABEL = {
28
+ 0: '1_not_happening',
29
+ 1: '2_not_human',
30
+ 2: '3_not_bad',
31
+ 3: '4_solutions_harmful_unnecessary',
32
+ 4: '7_fossil_fuels_needed',
33
+ 5: '5_science_unreliable',
34
+ 6: '6_proponents_biased'}
35
+
36
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
37
 
38
  from fastapi import APIRouter