Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,9 @@ def infer(prompt,negative_prompt,seed,resolution, steps):
|
|
| 61 |
|
| 62 |
# generator = torch.Generator("cuda").manual_seed(555)
|
| 63 |
t=time.time()
|
| 64 |
-
pipe.to("cuda")
|
|
|
|
|
|
|
| 65 |
if seed=="-1":
|
| 66 |
generator=None
|
| 67 |
else:
|
|
|
|
| 61 |
|
| 62 |
# generator = torch.Generator("cuda").manual_seed(555)
|
| 63 |
t=time.time()
|
| 64 |
+
pipe.unet.unet.to("cuda")
|
| 65 |
+
pipe.unet.ella.to("cuda")
|
| 66 |
+
|
| 67 |
if seed=="-1":
|
| 68 |
generator=None
|
| 69 |
else:
|