valhalla commited on
Commit
b7eaa61
·
1 Parent(s): f0170bf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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
  ```