Update README.md
Browse files
README.md
CHANGED
|
@@ -63,7 +63,7 @@ pipe = pipe.to(device)
|
|
| 63 |
|
| 64 |
prompt = "a photograph of an astronaut riding a horse"
|
| 65 |
with autocast("cuda"):
|
| 66 |
-
image = pipe(prompt)["sample"][0] # image here is in PIL format
|
| 67 |
|
| 68 |
image.save(f"astronaut_rides_horse.png")
|
| 69 |
```
|
|
|
|
| 63 |
|
| 64 |
prompt = "a photograph of an astronaut riding a horse"
|
| 65 |
with autocast("cuda"):
|
| 66 |
+
image = pipe(prompt, generator=generator)["sample"][0] # image here is in PIL format
|
| 67 |
|
| 68 |
image.save(f"astronaut_rides_horse.png")
|
| 69 |
```
|