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