multimodalart HF staff commited on
Commit
6389ef8
1 Parent(s): 0227cff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,8 +106,8 @@ def process_url(url, profile, do_download=True, folder="."):
106
 
107
  def create_readme(info, downloaded_files, link_civit=False, is_author=True, folder="."):
108
  readme_content = ""
109
- original_url = f"https://civitai.com/models/{info['id']}"
110
- link_civit_disclaimer = f'([CivitAI]({original_url})'
111
  non_author_disclaimer = f'This model was originally uploaded on [CivitAI]({original_url}), by [{info["creator"]}](https://civitai.com/user/{info["creator"]}/models). The information below was provided by the author on CivitAI:'
112
  default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers"]
113
  civit_tags = [t for t in info["tags"] if t not in default_tags]
 
106
 
107
  def create_readme(info, downloaded_files, link_civit=False, is_author=True, folder="."):
108
  readme_content = ""
109
+ original_url = f"https://civitai.com/models/{info['modelId']}"
110
+ link_civit_disclaimer = f'([CivitAI]({original_url}))'
111
  non_author_disclaimer = f'This model was originally uploaded on [CivitAI]({original_url}), by [{info["creator"]}](https://civitai.com/user/{info["creator"]}/models). The information below was provided by the author on CivitAI:'
112
  default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers"]
113
  civit_tags = [t for t in info["tags"] if t not in default_tags]