Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -1
src/streamlit_app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import os
|
2 |
-
|
|
|
|
|
3 |
|
4 |
import streamlit as st
|
5 |
import torch
|
|
|
1 |
import os
|
2 |
+
# Force Hugging Face to use a writable directory
|
3 |
+
os.environ["HF_HOME"] = "/tmp/huggingface"
|
4 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/hf_cache"
|
5 |
|
6 |
import streamlit as st
|
7 |
import torch
|