ankanghosh commited on
Commit
d95abce
·
verified ·
1 Parent(s): 72511f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py CHANGED
@@ -1,6 +1,29 @@
1
  import streamlit as st
2
  import time
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  # FIRST: Set page config before ANY other Streamlit command
5
  st.set_page_config(page_title="Spirituality Q&A")
6
 
 
1
  import streamlit as st
2
  import time
3
 
4
+ # DEBUG - Secret inspection code
5
+ import streamlit as st
6
+
7
+ st.write("Debugging Secrets:")
8
+ try:
9
+ # Safely show secret structure without revealing values
10
+ st.write("Secret keys at root level:", list(st.secrets.keys()))
11
+
12
+ # If there are nested structures, explore them
13
+ for k in st.secrets.keys():
14
+ if isinstance(st.secrets[k], dict):
15
+ st.write(f"Keys inside '{k}':", list(st.secrets[k].keys()))
16
+ except Exception as e:
17
+ st.write(f"Error inspecting secrets: {str(e)}")
18
+
19
+ # Try accessing specific secrets
20
+ try:
21
+ st.write("Can access bucket_name_gcs:", "bucket_name_gcs" in st.secrets)
22
+ st.write("Can access embedding_model_path:", "embedding_model_path" in st.secrets)
23
+ except Exception as e:
24
+ st.write(f"Error checking secrets: {str(e)}")
25
+
26
+ #####
27
  # FIRST: Set page config before ANY other Streamlit command
28
  st.set_page_config(page_title="Spirituality Q&A")
29