BulatF commited on
Commit
7f437d4
1 Parent(s): 5ac8c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import streamlit as st
2
  from datetime import datetime
 
3
  from get_next_standup_taker import get_next_standup_taker, team_members
4
  from datasets import load_dataset, load_metric
5
 
@@ -29,6 +30,10 @@ if 'next_taker' not in st.session_state:
29
  if 'standup_history' not in st.session_state:
30
  st.session_state.standup_history = []
31
 
 
 
 
 
32
  # Login Screen
33
  if not st.session_state.logged_in:
34
  st.title("Login to Stand-Up Taker App")
@@ -36,7 +41,7 @@ if not st.session_state.logged_in:
36
  password = st.text_input("Password:", type="password")
37
 
38
  if st.button("Login"):
39
- if username == "analytics" and password == "try_me_123!":
40
  st.session_state.logged_in = True
41
  st.experimental_rerun()
42
  else:
 
1
  import streamlit as st
2
  from datetime import datetime
3
+ import os
4
  from get_next_standup_taker import get_next_standup_taker, team_members
5
  from datasets import load_dataset, load_metric
6
 
 
30
  if 'standup_history' not in st.session_state:
31
  st.session_state.standup_history = []
32
 
33
+ # Fetch login and password from environment variables
34
+ username_secret = os.environ.get("login")
35
+ password_secret = os.environ.get("password")
36
+
37
  # Login Screen
38
  if not st.session_state.logged_in:
39
  st.title("Login to Stand-Up Taker App")
 
41
  password = st.text_input("Password:", type="password")
42
 
43
  if st.button("Login"):
44
+ if username == username_secret and password == password_secret:
45
  st.session_state.logged_in = True
46
  st.experimental_rerun()
47
  else: