Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,8 +169,7 @@ You should use {formatted_words} to trigger the image generation.
|
|
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:
|
173 |
-
negative_prompt: '{negative_prompt}'
|
174 |
output:
|
175 |
url: >-
|
176 |
{image}
|
|
|
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}
|