CognitiveScience commited on
Commit
20bc492
·
verified ·
1 Parent(s): 9e2f834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,9 +17,9 @@ 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
 
 
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 = ["mod1","mod2"
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