Spaces:
Running
Running
Commit
•
232dd74
1
Parent(s):
45f530f
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def download_file(url, filename, folder="."):
|
|
129 |
response.raise_for_status()
|
130 |
except requests.exceptions.HTTPError as e:
|
131 |
if api_key and response.status_code == 401:
|
132 |
-
headers['Authorization'] = f'Bearer {os.environ[
|
133 |
try:
|
134 |
response = requests.get(url, headers=headers)
|
135 |
response.raise_for_status()
|
|
|
129 |
response.raise_for_status()
|
130 |
except requests.exceptions.HTTPError as e:
|
131 |
if api_key and response.status_code == 401:
|
132 |
+
headers['Authorization'] = f'Bearer {os.environ["CIVITAI_API"]}'
|
133 |
try:
|
134 |
response = requests.get(url, headers=headers)
|
135 |
response.raise_for_status()
|