Spaces:
Running
Running
Commit
·
3f71e88
1
Parent(s):
ef0171e
Update app.py
Browse files
app.py
CHANGED
@@ -112,10 +112,12 @@ def create_readme(info, downloaded_files, is_author=True, folder="."):
|
|
112 |
unpacked_tags = "\n-".join(tags)
|
113 |
content = f"""---
|
114 |
license: other
|
115 |
-
tags:
|
|
|
116 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
117 |
instance_prompt: {info['trainedWords'][0] if 'trainedWords' in info and len(info['trainedWords']) > 0 else ''}
|
118 |
-
widget:
|
|
|
119 |
---
|
120 |
|
121 |
# {info["name"]}
|
@@ -123,6 +125,7 @@ widget:{widget_prompts}
|
|
123 |
{non_author_disclaimer if not is_author else ''}
|
124 |
|
125 |
![Image 0]({downloaded_files["imageName"][0]})
|
|
|
126 |
|
127 |
{info["description"]}
|
128 |
|
|
|
112 |
unpacked_tags = "\n-".join(tags)
|
113 |
content = f"""---
|
114 |
license: other
|
115 |
+
tags:
|
116 |
+
- {unpacked_tags}
|
117 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
118 |
instance_prompt: {info['trainedWords'][0] if 'trainedWords' in info and len(info['trainedWords']) > 0 else ''}
|
119 |
+
widget:
|
120 |
+
- text: {widget_prompts}
|
121 |
---
|
122 |
|
123 |
# {info["name"]}
|
|
|
125 |
{non_author_disclaimer if not is_author else ''}
|
126 |
|
127 |
![Image 0]({downloaded_files["imageName"][0]})
|
128 |
+
> _{downloaded_files["imagePrompt"][0]}_
|
129 |
|
130 |
{info["description"]}
|
131 |
|