Spaces:
Sleeping
Sleeping
jocko
commited on
Commit
Β·
e61e1a8
1
Parent(s):
896e28f
fix image similarity detection
Browse files- src/streamlit_app.py +5 -0
src/streamlit_app.py
CHANGED
|
@@ -30,6 +30,11 @@ import openai
|
|
| 30 |
import comet_llm
|
| 31 |
from opik import track
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
# ========== π API Key ==========
|
|
|
|
| 30 |
import comet_llm
|
| 31 |
from opik import track
|
| 32 |
|
| 33 |
+
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
|
| 34 |
+
os.environ["STREAMLIT_CACHE_DIR"] = f"{CACHE_BASE}/streamlit_cache"
|
| 35 |
+
os.environ["STREAMLIT_STATIC_DIR"] = f"{CACHE_BASE}/streamlit_static"
|
| 36 |
+
|
| 37 |
+
os.makedirs("/tmp/.streamlit", exist_ok=True)
|
| 38 |
|
| 39 |
|
| 40 |
# ========== π API Key ==========
|