Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|