yasserrmd commited on
Commit
1403855
·
verified ·
1 Parent(s): 3270c90

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -28,9 +28,8 @@ model_name = "yasserrmd/nsfk-detection"
28
  tokenizer = AutoTokenizer.from_pretrained(model_name)
29
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
30
 
31
- # Load label map
32
- with open('./results/checkpoint-4467/label_map.json', 'r') as f:
33
- label_map = json.load(f)
34
  id_to_label = {i: label for label, i in label_map.items()}
35
 
36
  threshold = 0.7 # Confidence threshold for classification
 
28
  tokenizer = AutoTokenizer.from_pretrained(model_name)
29
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
30
 
31
+ label_map = {"True": 0, "False": 1}
32
+
 
33
  id_to_label = {i: label for label, i in label_map.items()}
34
 
35
  threshold = 0.7 # Confidence threshold for classification