multimodalart HF staff commited on
Commit
3f71e88
·
1 Parent(s): ef0171e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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:{unpacked_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:{widget_prompts}
 
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