multimodalart HF Staff commited on
Commit
658bfff
·
verified ·
1 Parent(s): edb6c7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -168,8 +168,9 @@ You should use {formatted_words} to trigger the image generation.
168
  widget_content = ""
169
  for index, (prompt, negative_prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageNegativePrompt"], downloaded_files["imageName"])):
170
  escaped_prompt = prompt.replace("'", "''")
 
171
  widget_content += f"""- text: '{escaped_prompt if escaped_prompt else ' ' }'
172
- {'parameters:\n negative_prompt: ' + "'" + negative_prompt + "'" if negative_prompt else ''}
173
  output:
174
  url: >-
175
  {image}
 
168
  widget_content = ""
169
  for index, (prompt, negative_prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageNegativePrompt"], downloaded_files["imageName"])):
170
  escaped_prompt = prompt.replace("'", "''")
171
+
172
  widget_content += f"""- text: '{escaped_prompt if escaped_prompt else ' ' }'
173
+ {'parameters:\n negative_prompt: ' + repr(negative_prompt) + '\n' if negative_prompt else ''}
174
  output:
175
  url: >-
176
  {image}