Spaces:
Runtime error
Runtime error
no token
Browse files
app.py
CHANGED
|
@@ -10,9 +10,6 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
| 10 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
| 11 |
if oauth_token is None:
|
| 12 |
return "Please log in to list private models."
|
| 13 |
-
print("...")
|
| 14 |
-
print(oauth_token.token)
|
| 15 |
-
print(oauth_token.token.split("_"))
|
| 16 |
models = [
|
| 17 |
f"{model.id} ({'private' if model.private else 'public'})"
|
| 18 |
for model in list_models(author=profile.username, token=oauth_token.token)
|
|
|
|
| 10 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
| 11 |
if oauth_token is None:
|
| 12 |
return "Please log in to list private models."
|
|
|
|
|
|
|
|
|
|
| 13 |
models = [
|
| 14 |
f"{model.id} ({'private' if model.private else 'public'})"
|
| 15 |
for model in list_models(author=profile.username, token=oauth_token.token)
|