Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -12,6 +12,10 @@ from io import BytesIO
|
|
12 |
from PIL import Image
|
13 |
import requests
|
14 |
import os
|
|
|
|
|
|
|
|
|
15 |
|
16 |
app = FastAPI()
|
17 |
|
|
|
12 |
from PIL import Image
|
13 |
import requests
|
14 |
import os
|
15 |
+
import os
|
16 |
+
|
17 |
+
# Set the Hugging Face cache directory to a writable location
|
18 |
+
os.environ['HF_HOME'] = '/tmp/huggingface_cache'
|
19 |
|
20 |
app = FastAPI()
|
21 |
|