vaibhaviiii28 commited on
Commit
b702e41
Β·
verified Β·
1 Parent(s): a12bf3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=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: