awacke1 commited on
Commit
20e4932
β€’
1 Parent(s): 960b172

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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