multimodalart HF staff commited on
Commit
232dd74
1 Parent(s): 45f530f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['CIVITAI_API']}'
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()