rahul7star commited on
Commit
c7f856b
·
verified ·
1 Parent(s): 107b889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -7,6 +7,11 @@ import os
7
  import os
8
  import zipfile
9
  import tempfile # ✅ Add this!
 
 
 
 
 
10
  app = FastAPI()
11
 
12
  # CORS setup to allow requests from your frontend
 
7
  import os
8
  import zipfile
9
  import tempfile # ✅ Add this!
10
+
11
+ os.environ["HF_HOME"] = "/tmp/hf_cache"
12
+ os.makedirs("/tmp/hf_cache", exist_ok=True)
13
+
14
+
15
  app = FastAPI()
16
 
17
  # CORS setup to allow requests from your frontend