Spaces:
Running
Running
Commit
·
0b1a6cb
1
Parent(s):
f15cb29
Update app.py
Browse files
app.py
CHANGED
@@ -112,10 +112,10 @@ def create_readme(info, downloaded_files, link_civit=False, is_author=True, fold
|
|
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]
|
114 |
widget_prompts = "\n- text: ".join(['"' + prompt.replace('"', '\\"') + '"' for prompt in downloaded_files["imagePrompt"] if prompt])
|
115 |
-
print(widget_prompts)
|
116 |
tags = default_tags + civit_tags
|
117 |
unpacked_tags = "\n- ".join(tags)
|
118 |
-
content = f"""---
|
|
|
119 |
tags:
|
120 |
- {unpacked_tags}
|
121 |
|
|
|
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]
|
114 |
widget_prompts = "\n- text: ".join(['"' + prompt.replace('"', '\\"') + '"' for prompt in downloaded_files["imagePrompt"] if prompt])
|
|
|
115 |
tags = default_tags + civit_tags
|
116 |
unpacked_tags = "\n- ".join(tags)
|
117 |
+
content = f"""---
|
118 |
+
license: other
|
119 |
tags:
|
120 |
- {unpacked_tags}
|
121 |
|