Commit
·
afa593f
1
Parent(s):
97e26aa
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -8,7 +8,7 @@ import json
|
|
| 8 |
class EndpointHandler():
|
| 9 |
def __init__(self, path=""):
|
| 10 |
model_id = "stabilityai/stable-diffusion-2-1"
|
| 11 |
-
self.pipe = StableDiffusionPipeline.from_pretrained(model_id
|
| 12 |
self.pipe.scheduler = DPMSolverMultistepScheduler.from_config(self.pipe.scheduler.config)
|
| 13 |
self.pipe = self.pipe.to("cuda")
|
| 14 |
|
|
|
|
| 8 |
class EndpointHandler():
|
| 9 |
def __init__(self, path=""):
|
| 10 |
model_id = "stabilityai/stable-diffusion-2-1"
|
| 11 |
+
self.pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
| 12 |
self.pipe.scheduler = DPMSolverMultistepScheduler.from_config(self.pipe.scheduler.config)
|
| 13 |
self.pipe = self.pipe.to("cuda")
|
| 14 |
|