Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,8 @@ def imagen(inputs):
|
|
| 13 |
pipe = pipe.to("cuda")
|
| 14 |
|
| 15 |
prompt = "a photo of an astronaut riding a horse on mars"
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
return image
|
| 19 |
|
|
|
|
| 13 |
pipe = pipe.to("cuda")
|
| 14 |
|
| 15 |
prompt = "a photo of an astronaut riding a horse on mars"
|
| 16 |
+
negative_prompt = 'pixelated, distorted'
|
| 17 |
+
image = pipe(prompt=inputs, negative_prompt=negative_prompt).images[0]
|
| 18 |
|
| 19 |
return image
|
| 20 |
|