Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|