Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def load_and_prepare_model(model_id):
|
|
100 |
add_watermarker=False,
|
101 |
)
|
102 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
103 |
-
pipe.to
|
104 |
if USE_TORCH_COMPILE:
|
105 |
pipe.compile()
|
106 |
|
|
|
100 |
add_watermarker=False,
|
101 |
)
|
102 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
103 |
+
pipe.to('cuda')
|
104 |
if USE_TORCH_COMPILE:
|
105 |
pipe.compile()
|
106 |
|