Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ pipe.to("cuda")
|
|
16 |
# Load the NSFW classifier
|
17 |
image_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection",device=device)
|
18 |
text_classifier = pipeline("text-classification", model="eliasalbouzidi/distilbert-nsfw-text-classifier",device=device)
|
19 |
-
|
20 |
NSFW_THRESHOLD = 0.5
|
21 |
|
22 |
# Define the function to generate the sketch
|
|
|
16 |
# Load the NSFW classifier
|
17 |
image_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection",device=device)
|
18 |
text_classifier = pipeline("text-classification", model="eliasalbouzidi/distilbert-nsfw-text-classifier",device=device)
|
19 |
+
|
20 |
NSFW_THRESHOLD = 0.5
|
21 |
|
22 |
# Define the function to generate the sketch
|