Spaces:
Sleeping
Sleeping
Timo
commited on
Commit
·
e643383
1
Parent(s):
55fea2c
OK
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -31,7 +31,7 @@ os.environ.setdefault("HF_HOME", "/tmp/hf_cache") # model files
|
|
| 31 |
|
| 32 |
# 2) create them so the next write succeeds
|
| 33 |
for _dir in (os.environ["STREAMLIT_HOME"], os.environ["HF_HOME"]):
|
| 34 |
-
|
| 35 |
|
| 36 |
# 3) silence the “Collecting usage statistics…” banner completely
|
| 37 |
os.environ["STREAMLIT_BROWSER_GATHERUSAGESTATS"] = "false"
|
|
|
|
| 31 |
|
| 32 |
# 2) create them so the next write succeeds
|
| 33 |
for _dir in (os.environ["STREAMLIT_HOME"], os.environ["HF_HOME"]):
|
| 34 |
+
Path(_dir).mkdir(parents=True, exist_ok=True)
|
| 35 |
|
| 36 |
# 3) silence the “Collecting usage statistics…” banner completely
|
| 37 |
os.environ["STREAMLIT_BROWSER_GATHERUSAGESTATS"] = "false"
|