multimodalart HF staff commited on
Commit
410e0b2
1 Parent(s): 9fe66a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ def create_readme(info, downloaded_files, link_civit=False, is_author=True, fold
135
  widget_content = ""
136
  for index, (prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageName"])):
137
  escaped_prompt = prompt.replace("'", "''")
138
- widget_content += f"""- text: '{escaped_prompt}'
139
  output:
140
  url: >-
141
  {image}
 
135
  widget_content = ""
136
  for index, (prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageName"])):
137
  escaped_prompt = prompt.replace("'", "''")
138
+ widget_content += f"""- text: '{escaped_prompt if escaped_prompt else ' ' }'
139
  output:
140
  url: >-
141
  {image}