From 7439eefba53b73031ed3185d5f66d508358b80c0 Mon Sep 17 00:00:00 2001 From: Zachary Levonian Date: Wed, 24 Jan 2024 17:16:03 -0800 Subject: [PATCH] Update auth logic --- src/hint_generation/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: