Spaces:
Running
on
Zero
Running
on
Zero
VamooseBambel
commited on
Commit
•
e8ec659
1
Parent(s):
8913faa
Huh?
Browse files- nsfw_detector.py +1 -1
nsfw_detector.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
|
7 |
class NSFWDetector:
|
8 |
def __init__(self):
|
9 |
-
self.model_path = "
|
10 |
self.feature_extractor = AutoProcessor.from_pretrained(self.model_path)
|
11 |
self.model = FocalNetForImageClassification.from_pretrained(self.model_path)
|
12 |
self.model.eval()
|
|
|
6 |
|
7 |
class NSFWDetector:
|
8 |
def __init__(self):
|
9 |
+
self.model_path = "TostAI/nsfw-image-detection-large"
|
10 |
self.feature_extractor = AutoProcessor.from_pretrained(self.model_path)
|
11 |
self.model = FocalNetForImageClassification.from_pretrained(self.model_path)
|
12 |
self.model.eval()
|