asoderznik commited on
Commit
bdb5d3a
1 Parent(s): dcd85b1

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -23,8 +23,8 @@ class EndpointHandler():
23
  def __init__(self, path=""):
24
  self.path = path
25
  # load the optimized model
26
- #model_id = "stabilityai/stable-diffusion-x4-upscaler"
27
- self.pipe = DiffusionPipeline.from_pretrained(path, torch_dtype=torch.float16)
28
  self.pipe = self.pipe.to(device)
29
 
30
 
 
23
  def __init__(self, path=""):
24
  self.path = path
25
  # load the optimized model
26
+ model_id = "stabilityai/stable-diffusion-x4-upscaler"
27
+ self.pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
28
  self.pipe = self.pipe.to(device)
29
 
30