m-ric HF staff commited on
Commit
5af8d83
1 Parent(s): f184508

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def infer(
25
  seed = random.randint(0, MAX_SEED)
26
 
27
  try:
28
- generator = torch.Generator(device=device).manual_seed(seed)
29
 
30
  image = pipe(
31
  prompt=prompt,
 
25
  seed = random.randint(0, MAX_SEED)
26
 
27
  try:
28
+ generator = torch.Generator(device="cuda").manual_seed(seed)
29
 
30
  image = pipe(
31
  prompt=prompt,