qiqiWav commited on
Commit
97722ab
1 Parent(s): d39a16f

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
 
6
  processed_inputs = {}
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:
 
5
 
6
  processed_inputs = {}
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 profile 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: