multimodalart HF staff commited on
Commit
c08bad3
1 Parent(s): 3928b10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -229,7 +229,7 @@ def push(model_name, where_to_upload, hf_token, comes_from_automated=False):
229
  else:
230
  title_instance_prompt_string = ''
231
  previous_instance_prompt = instance_prompt
232
- image_string = f'''{title_instance_prompt_string} (use that on your prompt)
233
  {image_string}![{instance_prompt} {i}](https://huggingface.co/{model_id}/resolve/main/concept_images/{urllib.parse.quote(image)})'''
234
  readme_text = f'''---
235
  license: creativeml-openrail-m
 
229
  else:
230
  title_instance_prompt_string = ''
231
  previous_instance_prompt = instance_prompt
232
+ image_string = f'''{title_instance_prompt_string} {"(use that on your prompt)" if title_instance_prompt_string != "" else ""}
233
  {image_string}![{instance_prompt} {i}](https://huggingface.co/{model_id}/resolve/main/concept_images/{urllib.parse.quote(image)})'''
234
  readme_text = f'''---
235
  license: creativeml-openrail-m