Hatman commited on
Commit
f0da3a3
·
verified ·
1 Parent(s): 88fc2e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,8 +68,8 @@ def create_image(image_pil,
68
  else: # If it's already a PIL Image
69
  style_image = image_pil.convert('RGB')
70
 
71
- device = next(pipe.parameters()).device
72
- generator = torch.Generator(device=device).manual_seed(randomize_seed_fn(seed, True))
73
 
74
  image = pipe(
75
  width=1024,
 
68
  else: # If it's already a PIL Image
69
  style_image = image_pil.convert('RGB')
70
 
71
+
72
+ generator = torch.Generator().manual_seed(randomize_seed_fn(seed, True))
73
 
74
  image = pipe(
75
  width=1024,