Spaces:
Running
Running
Commit
•
44cc1f6
1
Parent(s):
c739b77
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def create_readme(info, downloaded_files, is_author=True, folder="."):
|
|
110 |
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:'
|
111 |
default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers"]
|
112 |
civit_tags = [t for t in info["tags"] if t not in default_tags]
|
113 |
-
widget_prompts = "\n- text: ".join([
|
114 |
tags = default_tags + civit_tags
|
115 |
unpacked_tags = "\n- ".join(tags)
|
116 |
content = f"""---
|
|
|
110 |
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:'
|
111 |
default_tags = ["text-to-image", "stable-diffusion", "lora", "diffusers"]
|
112 |
civit_tags = [t for t in info["tags"] if t not in default_tags]
|
113 |
+
widget_prompts = "\n- text: ".join(['"' + prompt.replace('"', '\\"') + '"' for prompt in downloaded_files["imagePrompt"] if prompt])
|
114 |
tags = default_tags + civit_tags
|
115 |
unpacked_tags = "\n- ".join(tags)
|
116 |
content = f"""---
|