Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,15 +60,14 @@ if 'logged_in' not in st.session_state:
|
|
60 |
|
61 |
if not st.session_state.logged_in:
|
62 |
st.subheader("🔐 Login")
|
63 |
-
|
64 |
-
input_key = Key
|
65 |
if st.button("🚀 Login"):
|
66 |
if input_key:
|
67 |
st.session_state.primary_key = input_key
|
68 |
st.session_state.logged_in = True
|
69 |
st.rerun()
|
70 |
else:
|
71 |
-
st.error("Please
|
72 |
else:
|
73 |
# Initialize Cosmos DB client
|
74 |
client = CosmosClient(ENDPOINT, credential=st.session_state.primary_key)
|
|
|
60 |
|
61 |
if not st.session_state.logged_in:
|
62 |
st.subheader("🔐 Login")
|
63 |
+
input_key = Key # Use the predefined Key instead of asking for user input
|
|
|
64 |
if st.button("🚀 Login"):
|
65 |
if input_key:
|
66 |
st.session_state.primary_key = input_key
|
67 |
st.session_state.logged_in = True
|
68 |
st.rerun()
|
69 |
else:
|
70 |
+
st.error("Invalid key. Please check your environment variables.")
|
71 |
else:
|
72 |
# Initialize Cosmos DB client
|
73 |
client = CosmosClient(ENDPOINT, credential=st.session_state.primary_key)
|