Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ os.makedirs(CACHE_DIR, exist_ok=True)
|
|
17 |
app = FastAPI()
|
18 |
|
19 |
# β
Load NSFW Image Classification Model (with custom cache directory)
|
20 |
-
pipe = pipeline("image-classification", model="LukeJacob2023/nsfw-image-detector", cache_dir=
|
|
|
21 |
|
22 |
# β
Load Toxic Text Classification Model
|
23 |
try:
|
|
|
17 |
app = FastAPI()
|
18 |
|
19 |
# β
Load NSFW Image Classification Model (with custom cache directory)
|
20 |
+
pipe = pipeline("image-classification", model="LukeJacob2023/nsfw-image-detector", cache_dir="/tmp/hf_cache")
|
21 |
+
|
22 |
|
23 |
# β
Load Toxic Text Classification Model
|
24 |
try:
|