Skip to content

Commit

Permalink
Update auth logic
Browse files Browse the repository at this point in the history
  • Loading branch information
levon003 committed Jan 25, 2024
1 parent a260e23 commit 7439eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hint_generation/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7439eef

Please sign in to comment.