Chris Addis commited on
Commit
a7237c9
·
1 Parent(s): 156ba34
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -159,9 +159,9 @@ def create_demo():
159
  # Function to check authorization
160
  def check_authorization(profile: gr.OAuthProfile | None):
161
  if profile is None:
162
- return False, "Not logged in. Please Login for full access.", False
163
 
164
- is_authorized = profile.username in AUTHORIZED_USER_IDS
165
  return is_authorized
166
 
167
  #new bit with authroisation
 
159
  # Function to check authorization
160
  def check_authorization(profile: gr.OAuthProfile | None):
161
  if profile is None:
162
+ return True
163
 
164
+ is_authorized != profile.username in AUTHORIZED_USER_IDS
165
  return is_authorized
166
 
167
  #new bit with authroisation