Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -1
src/streamlit_app.py
CHANGED
|
@@ -6,7 +6,11 @@ import os
|
|
| 6 |
from streamlit.components.v1 import html
|
| 7 |
load_dotenv()
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
hf_api_key = os.getenv("SECRET")
|
| 11 |
|
| 12 |
if not hf_api_key:
|
|
|
|
| 6 |
from streamlit.components.v1 import html
|
| 7 |
load_dotenv()
|
| 8 |
|
| 9 |
+
STREAMLIT_CONFIG_DIR = "/tmp/.streamlit"
|
| 10 |
+
os.makedirs(STREAMLIT_CONFIG_DIR, exist_ok=True)
|
| 11 |
+
|
| 12 |
+
# Set config path (optional)
|
| 13 |
+
os.environ["STREAMLIT_CONFIG_DIR"] = STREAMLIT_CONFIG_DIR
|
| 14 |
hf_api_key = os.getenv("SECRET")
|
| 15 |
|
| 16 |
if not hf_api_key:
|