multimodalart HF Staff commited on
Commit
015d182
·
1 Parent(s): 89091f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -115,7 +115,8 @@ def create_readme(info, downloaded_files, link_civit=False, is_author=True, fold
115
  print(widget_prompts)
116
  tags = default_tags + civit_tags
117
  unpacked_tags = "\n- ".join(tags)
118
- content = f"""---
 
119
  license: other
120
  tags:
121
  - {unpacked_tags}
@@ -123,7 +124,7 @@ tags:
123
  base_model: stabilityai/stable-diffusion-xl-base-1.0
124
  instance_prompt: {info['trainedWords'][0] if 'trainedWords' in info and len(info['trainedWords']) > 0 else ''}
125
  widget:
126
- - text: {widget_prompts}
127
  ---
128
 
129
  # {info["name"]}
 
115
  print(widget_prompts)
116
  tags = default_tags + civit_tags
117
  unpacked_tags = "\n- ".join(tags)
118
+ content = f"""---f"text: {widget_prompts if widget_prompts else (info['trainedWords'][0] if info['trainedWords'][0] else '')}"
119
+
120
  license: other
121
  tags:
122
  - {unpacked_tags}
 
124
  base_model: stabilityai/stable-diffusion-xl-base-1.0
125
  instance_prompt: {info['trainedWords'][0] if 'trainedWords' in info and len(info['trainedWords']) > 0 else ''}
126
  widget:
127
+ - text: {widget_prompts if widget_prompts else (info['trainedWords'][0] if 'trainedWords' in info and len(info['trainedWords']) > 0 else '')}
128
  ---
129
 
130
  # {info["name"]}