Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def infer(
|
|
25 |
seed = random.randint(0, MAX_SEED)
|
26 |
|
27 |
try:
|
28 |
-
generator = torch.Generator(device=
|
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,
|