Spaces:
Running
Running
Update app.py
Browse files
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()
|