Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -0
src/streamlit_app.py
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import requests
|
| 4 |
import tempfile
|
|
|
|
| 1 |
import os
|
| 2 |
+
|
| 3 |
+
# Définir un répertoire de configuration Streamlit dans un emplacement accessible en écriture
|
| 4 |
+
config_dir = os.environ.get("STREAMLIT_CONFIG_DIR", os.path.join(os.getcwd(), ".streamlit"))
|
| 5 |
+
os.makedirs(config_dir, exist_ok=True)
|
| 6 |
+
os.environ["STREAMLIT_CONFIG_DIR"] = config_dir
|
| 7 |
+
|
| 8 |
import streamlit as st
|
| 9 |
import requests
|
| 10 |
import tempfile
|