valhalla commited on
Commit
1553695
1 Parent(s): 9a24dd0

Update README.md

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