zachh commited on
Commit
c062dc3
·
1 Parent(s): 1571007

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -97,9 +97,11 @@ def main():
97
 
98
  elif difficulty == 1:
99
  question_augmentation = f'Simplify your response so a 5 year old would understand it: '
 
 
100
 
101
  user_question = st.text_input("Ask a question about your class:")
102
- if user_question:
103
  handle_userinput(user_question, question_augmentation)
104
 
105
 
 
97
 
98
  elif difficulty == 1:
99
  question_augmentation = f'Simplify your response so a 5 year old would understand it: '
100
+
101
+ pwd_protected = st.text_input("Type in the password to use the app:")
102
 
103
  user_question = st.text_input("Ask a question about your class:")
104
+ if user_question and pwd_protected == st.secrets["SECRET_PASSWORD"]:
105
  handle_userinput(user_question, question_augmentation)
106
 
107