hamedbabaeigiglou commited on
Commit
c9cf302
·
verified ·
1 Parent(s): b0662c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import os
2
- os.environ["HOME"] = os.getcwd()
 
 
 
3
 
4
 
5
  import streamlit as st
 
1
  import os
2
+
3
+ # Set Streamlit config path to a writable directory
4
+ os.environ["STREAMLIT_CONFIG_DIR"] = os.path.join(os.getcwd(), ".streamlit")
5
+ os.makedirs(os.environ["STREAMLIT_CONFIG_DIR"], exist_ok=True)
6
 
7
 
8
  import streamlit as st