CwAnkit07 commited on
Commit
d7c42fc
Β·
verified Β·
1 Parent(s): b5a02dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,8 +3,7 @@ from fastapi import FastAPI
3
  from pydantic import BaseModel
4
  from transformers import pipeline
5
 
6
- # βœ… Step 1: Set a Custom Cache Directory (Writable)
7
- os.environ["TRANSFORMERS_CACHE"] = "/app/cache"
8
  os.environ["HF_HOME"] = "/app/cache"
9
 
10
  # βœ… Step 2: Ensure Cache Directory Exists
 
3
  from pydantic import BaseModel
4
  from transformers import pipeline
5
 
6
+ # βœ… Step 1: Set the Correct Cache Directory (Only HF_HOME)
 
7
  os.environ["HF_HOME"] = "/app/cache"
8
 
9
  # βœ… Step 2: Ensure Cache Directory Exists