diff --git a/src/hint_generation/app.py b/src/hint_generation/app.py index 6c18e1d..11bc6cd 100644 --- a/src/hint_generation/app.py +++ b/src/hint_generation/app.py @@ -256,7 +256,7 @@ def build_app(): st.markdown("# Creating math hints with ChatGPT") make_sidebar() -if REQUIRE_AUTHENTICATION and auth_utils.check_is_authorized(allow_openai_key=False): +if not REQUIRE_AUTHENTICATION or auth_utils.check_is_authorized(allow_openai_key=False): instantiate_session() build_app() else: