Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
-
|
|
|
|
|
|
|
| 3 |
|
| 4 |
import streamlit as st
|
| 5 |
from PIL import Image
|
|
|
|
| 1 |
import os
|
| 2 |
+
|
| 3 |
+
# ✅ Use temp directory for safe model caching (fixes permission issues)
|
| 4 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/hf_cache"
|
| 5 |
|
| 6 |
import streamlit as st
|
| 7 |
from PIL import Image
|