multimodalart HF staff commited on
Commit
c18802b
1 Parent(s): 0f3f8c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +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]}?token={os.environ["CIVITAI_API"]}"
19
  try:
20
  response = requests.get(api_url)
21
  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]}?token={os.environ['CIVITAI_API']}"
19
  try:
20
  response = requests.get(api_url)
21
  response.raise_for_status()