qiqiWav commited on
Commit
c2762f8
1 Parent(s): 3320e1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import requests
5
  processed_inputs = {}
6
 
7
  def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None, profile: gr.OAuthProfile | None):
8
- if oauth_token.token is None or profile.username is None:
9
  return "You must be logged in to use this service."
10
 
11
  if not model_id or not q_method or not email:
 
5
  processed_inputs = {}
6
 
7
  def process_inputs(model_id, q_method, email, oauth_token: gr.OAuthToken | None, profile: gr.OAuthProfile | None):
8
+ if oauth_token is None or oauth_token.token is None or profile.username is None:
9
  return "You must be logged in to use this service."
10
 
11
  if not model_id or not q_method or not email: