James McCool commited on
Commit
652af3f
·
1 Parent(s): ddfae15

Update Streamlit app to extend cache duration for resource initialization from 60 to 300 seconds, improving performance. Add MongoDB URI to secrets.toml for secure database connection.

Browse files
{.streamlit → src/.streamlit}/secrets.toml RENAMED
File without changes
src/streamlit_app.py CHANGED
@@ -16,7 +16,7 @@ def init_conn():
16
 
17
  db = init_conn()
18
 
19
- @st.cache_resource(ttl = 60)
20
  def init_baselines():
21
  collection = db["HR_Table"]
22
  cursor = collection.find()
 
16
 
17
  db = init_conn()
18
 
19
+ @st.cache_resource(ttl = 300)
20
  def init_baselines():
21
  collection = db["HR_Table"]
22
  cursor = collection.find()