Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,11 @@ def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthTo
|
|
| 17 |
# if the user is not logged in, oauth_token will be None
|
| 18 |
if oauth_token is None:
|
| 19 |
return "Please log in to list private models."
|
| 20 |
-
models = [
|
| 21 |
#f"{model.id} ({'private' if model.private else 'public'})"
|
| 22 |
#for model in list_models(author=profile.username, token=oauth_token.token)
|
| 23 |
-
]
|
| 24 |
-
return "Models:\n\n" + "\n - ".join(models) + "."
|
| 25 |
|
| 26 |
|
| 27 |
with gr.Blocks() as demo:
|
|
|
|
| 17 |
# if the user is not logged in, oauth_token will be None
|
| 18 |
if oauth_token is None:
|
| 19 |
return "Please log in to list private models."
|
| 20 |
+
#models = [
|
| 21 |
#f"{model.id} ({'private' if model.private else 'public'})"
|
| 22 |
#for model in list_models(author=profile.username, token=oauth_token.token)
|
| 23 |
+
#]
|
| 24 |
+
return "You r in........." #"Models:\n\n" + "\n - ".join(models) + "."
|
| 25 |
|
| 26 |
|
| 27 |
with gr.Blocks() as demo:
|