Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -3
src/streamlit_app.py
CHANGED
|
@@ -9,10 +9,9 @@ In the meantime, below is an example of what you can do with just a few lines of
|
|
| 9 |
"""
|
| 10 |
import os
|
| 11 |
|
| 12 |
-
# Fix for Hugging Face
|
| 13 |
-
os.environ["STREAMLIT_HOME"] = "
|
| 14 |
os.environ["STREAMLIT_WATCH_DISABLE"] = "true"
|
| 15 |
-
os.makedirs("./.streamlit", exist_ok=True)
|
| 16 |
|
| 17 |
import streamlit as st
|
| 18 |
import torch
|
|
|
|
| 9 |
"""
|
| 10 |
import os
|
| 11 |
|
| 12 |
+
# Fix for Hugging Face: use safe temp path and disable file watcher
|
| 13 |
+
os.environ["STREAMLIT_HOME"] = "/tmp/.streamlit"
|
| 14 |
os.environ["STREAMLIT_WATCH_DISABLE"] = "true"
|
|
|
|
| 15 |
|
| 16 |
import streamlit as st
|
| 17 |
import torch
|