jonathanrstern commited on
Commit
9fdc2ab
1 Parent(s): cdea72a

StableDiffusionControlNetPipeline

Browse files
Files changed (1) hide show
  1. handler.py +5 -5
handler.py CHANGED
@@ -1,13 +1,13 @@
1
  from typing import Dict, List, Any
2
- from diffusers import StableDiffusionPipeline
 
 
 
3
 
4
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
- self.pipeline = StableDiffusionPipeline.from_single_file(
8
- "https://huggingface.co/artificialguybr/LogoRedmond-LogoLoraForSDXL/blob/main/LogoRedmond_LogoRedAF.safetensors",
9
- use_safetensors=True
10
- )
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
13
  """
 
1
  from typing import Dict, List, Any
2
+ from diffusers import (
3
+ ControlNetModel,
4
+ StableDiffusionControlNetPipeline,
5
+ )
6
 
7
 
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
+ self.pipeline = StableDiffusionControlNetPipeline.from_single_file("https://huggingface.co/artificialguybr/LogoRedmond-LogoLoraForSDXL/blob/main/LogoRedmond_LogoRedAF.safetensors")
 
 
 
11
 
12
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
13
  """