Spaces:
Running
Running
Commit
•
e5317b8
1
Parent(s):
f318ad6
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def create_readme(info, downloaded_files, user_repo_id, link_civit=False, is_aut
|
|
128 |
link_civit_disclaimer = f'([CivitAI]({original_url}))'
|
129 |
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:'
|
130 |
default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers", "template:sd-lora"]
|
131 |
-
civit_tags = [t for t in info["tags"] if t not in default_tags]
|
132 |
tags = default_tags + civit_tags
|
133 |
unpacked_tags = "\n- ".join(tags)
|
134 |
|
|
|
128 |
link_civit_disclaimer = f'([CivitAI]({original_url}))'
|
129 |
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:'
|
130 |
default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers", "template:sd-lora"]
|
131 |
+
civit_tags = [t.replace(":", "") for t in info["tags"] if t not in default_tags]
|
132 |
tags = default_tags + civit_tags
|
133 |
unpacked_tags = "\n- ".join(tags)
|
134 |
|