Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ SUBSCRIPTION_ID = "003fba60-5b3f-48f4-ab36-3ed11bc40816"
|
|
| 9 |
# You'll need to set these environment variables or use Azure Key Vault
|
| 10 |
DATABASE_NAME = os.environ.get("COSMOS_DATABASE_NAME")
|
| 11 |
CONTAINER_NAME = os.environ.get("COSMOS_CONTAINER_NAME")
|
|
|
|
| 12 |
|
| 13 |
def create_stored_procedure(container):
|
| 14 |
stored_procedure_definition = {
|
|
@@ -101,7 +102,8 @@ if 'logged_in' not in st.session_state:
|
|
| 101 |
|
| 102 |
if not st.session_state.logged_in:
|
| 103 |
st.subheader("🔐 Login")
|
| 104 |
-
input_key = st.text_input("Enter your Cosmos DB Primary Key", type="password")
|
|
|
|
| 105 |
if st.button("🚀 Login"):
|
| 106 |
if input_key:
|
| 107 |
st.session_state.primary_key = input_key
|
|
|
|
| 9 |
# You'll need to set these environment variables or use Azure Key Vault
|
| 10 |
DATABASE_NAME = os.environ.get("COSMOS_DATABASE_NAME")
|
| 11 |
CONTAINER_NAME = os.environ.get("COSMOS_CONTAINER_NAME")
|
| 12 |
+
Key = os.environ.get("Key")
|
| 13 |
|
| 14 |
def create_stored_procedure(container):
|
| 15 |
stored_procedure_definition = {
|
|
|
|
| 102 |
|
| 103 |
if not st.session_state.logged_in:
|
| 104 |
st.subheader("🔐 Login")
|
| 105 |
+
#input_key = st.text_input("Enter your Cosmos DB Primary Key", type="password")
|
| 106 |
+
input_key = Key
|
| 107 |
if st.button("🚀 Login"):
|
| 108 |
if input_key:
|
| 109 |
st.session_state.primary_key = input_key
|