Update README.md
Browse files
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 |
-
|
| 32 |
-
|
| 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
|