Symbiomatrix commited on
Commit
095325c
·
verified ·
1 Parent(s): cae7765

Can only access hidden models without flags.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -44,7 +44,8 @@ def download_file(url, file_path, folder, api_key=None):
44
 
45
 
46
  def get_files_by_username(username, api_key = None):
47
- url = f"https://civitai.com/api/v1/models?username={username}&limit=100&nsfw=true&hidden=true"
 
48
  if api_key: # Shows hidden models.
49
  url += f"&token={api_key}"
50
  output = {}
 
44
 
45
 
46
  def get_files_by_username(username, api_key = None):
47
+ # url = f"https://civitai.com/api/v1/models?username={username}&limit=100&nsfw=true&hidden=true"
48
+ url = f"https://civitai.com/api/v1/models?username={username}&limit=100" # Only working method for celebs.
49
  if api_key: # Shows hidden models.
50
  url += f"&token={api_key}"
51
  output = {}