AKV24 commited on
Commit
43a2fcd
·
verified ·
1 Parent(s): bc45c0c

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
- os.makedirs(".streamlit", exist_ok=True)
 
 
 
 
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: