Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|