Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ async def generate_image(prompt, prompt_name):
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
print(f"Generating image for {prompt_name}")
|
| 22 |
-
output = model(prompt=prompt, num_inference_steps=
|
| 23 |
if isinstance(output.images, list) and len(output.images) > 0:
|
| 24 |
image = output.images[0]
|
| 25 |
buffered = BytesIO()
|
|
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
print(f"Generating image for {prompt_name}")
|
| 22 |
+
output = model(prompt=prompt, num_inference_steps=1, guidance_scale=0.0)
|
| 23 |
if isinstance(output.images, list) and len(output.images) > 0:
|
| 24 |
image = output.images[0]
|
| 25 |
buffered = BytesIO()
|