rafaaa2105 commited on
Commit
303d4ef
1 Parent(s): 9d6872b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def find_download_url(data, file_extension):
40
  for file in data.get('modelVersions', [{}])[0].get('files', []):
41
  if file['name'].endswith(file_extension):
42
  return file['downloadUrl']
43
- return None
 
44
 
45
  def download_and_load_civitai_model(model_id, lora_id="", progress=gr.Progress(track_tqdm=True)):
46
  try:
 
40
  for file in data.get('modelVersions', [{}])[0].get('files', []):
41
  if file['name'].endswith(file_extension):
42
  return file['downloadUrl']
43
+ else:
44
+ return None
45
 
46
  def download_and_load_civitai_model(model_id, lora_id="", progress=gr.Progress(track_tqdm=True)):
47
  try: