emirhanbilgic commited on
Commit
6434038
1 Parent(s): f43f7c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def inpaint_hair(image, prompt):
80
  inpaint_condition = torch.from_numpy(np.expand_dims(image_np, 0).transpose(0, 3, 1, 2)).to(device)
81
 
82
  # Generate inpainted image
83
- generator = torch.Generator("cuda").manual_seed(42)
84
  output = pipe(
85
  prompt=prompt,
86
  image=image_pil,
 
80
  inpaint_condition = torch.from_numpy(np.expand_dims(image_np, 0).transpose(0, 3, 1, 2)).to(device)
81
 
82
  # Generate inpainted image
83
+ generator = torch.Generator(device).manual_seed(42)
84
  output = pipe(
85
  prompt=prompt,
86
  image=image_pil,