kapellmeister commited on
Commit
dcac2d5
1 Parent(s): 2b90b60

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -3
handler.py CHANGED
@@ -15,9 +15,8 @@ if device.type != 'cuda':
15
  class EndpointHandler():
16
  def __init__(self, path=""):
17
  # load the optimized model
18
- self.pipe = StableDiffusionPipeline.from_single_file(
19
- "https://huggingface.co/Onlyfake/realistic-vision-v4/blob/main/Realistic_Vision_V4.0.safetensors"
20
- ) self.pipe = self.pipe.to(device)
21
 
22
 
23
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
 
15
  class EndpointHandler():
16
  def __init__(self, path=""):
17
  # load the optimized model
18
+ self.pipe = StableDiffusionPipeline.from_single_file("https://huggingface.co/Onlyfake/realistic-vision-v4/blob/main/Realistic_Vision_V4.0.safetensors")
19
+ self.pipe = self.pipe.to(device)
 
20
 
21
 
22
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]: