Zhibinhong commited on
Commit
afa593f
·
1 Parent(s): 97e26aa

Update handler.py

Browse files
Files changed (1) hide show
  1. 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, torch_dtype=torch.float16)
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