mswhite commited on
Commit
1bb9c4f
·
verified ·
1 Parent(s): 50b7d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,8 +38,9 @@ def app_login(intro_video):
38
  user_password = st.text_input(label="Password", type="password", placeholder="Please enter your password",label_visibility="collapsed",icon=":material/key:")
39
 
40
  speak_easy = os.environ["SPEAK_EASY"] #
 
41
 
42
- if st.button("Log in") and (user_password.lower()==speak_easy): #
43
  st.session_state.logged_in = True
44
  st.session_state.user_name = user_name
45
  print("User Name is: ",st.session_state.user_name) # log user name
@@ -58,7 +59,7 @@ if "start_dir" not in st.session_state:
58
  st.session_state["start_dir"] = os.getcwd() # start directory for file hierarchy
59
 
60
  if "openai_model" not in st.session_state:
61
- st.session_state["openai_model"] = "gpt-4.1-mini" # o4 is another option but this works best with markdown / latex etc.
62
 
63
  if "openai_client" not in st.session_state:
64
  API_KEY = os.environ["API_KEY"] # api key from environ / secrets
 
38
  user_password = st.text_input(label="Password", type="password", placeholder="Please enter your password",label_visibility="collapsed",icon=":material/key:")
39
 
40
  speak_easy = os.environ["SPEAK_EASY"] #
41
+ users = os.environ["USERS"] #
42
 
43
+ if st.button("Log in") and (user_password.lower()==speak_easy) and user_name in users: #
44
  st.session_state.logged_in = True
45
  st.session_state.user_name = user_name
46
  print("User Name is: ",st.session_state.user_name) # log user name
 
59
  st.session_state["start_dir"] = os.getcwd() # start directory for file hierarchy
60
 
61
  if "openai_model" not in st.session_state:
62
+ st.session_state["openai_model"] = "gpt-5.2-pro" # advanced reasoning model with webtool support
63
 
64
  if "openai_client" not in st.session_state:
65
  API_KEY = os.environ["API_KEY"] # api key from environ / secrets