multimodalart HF staff commited on
Commit
45f530f
·
verified ·
1 Parent(s): a2a0ec8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -15,8 +15,7 @@ TRUSTED_UPLOADERS = ["KappaNeuro", "CiroN2022", "multimodalart", "Norod78", "joa
15
  def get_json_data(url):
16
  url_split = url.split('/')
17
  print("url_split: ", url_split)
18
- api_url = f"https://civitai.com/api/v1/models/{url_split[4]}?
19
- token={os.environ['CIVITAI_API']}"
20
  try:
21
  response = requests.get(api_url)
22
  response.raise_for_status()
 
15
  def get_json_data(url):
16
  url_split = url.split('/')
17
  print("url_split: ", url_split)
18
+ api_url = f"https://civitai.com/api/v1/models/{url_split[4]}"
 
19
  try:
20
  response = requests.get(api_url)
21
  response.raise_for_status()