jonathanrstern commited on
Commit
f53f2d2
1 Parent(s): eb993d1
Files changed (1) hide show
  1. handler.py +4 -0
handler.py CHANGED
@@ -6,8 +6,12 @@ class EndpointHandler():
6
  def __init__(self, path=""):
7
  self.pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
8
  self.pipeline.load_lora_weights(".", weight_name="/repository/safetensors.safetensors")
 
9
 
10
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
 
11
  input = data['inputs']
 
12
  result = self.pipeline(input)
 
13
  return result
 
6
  def __init__(self, path=""):
7
  self.pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
8
  self.pipeline.load_lora_weights(".", weight_name="/repository/safetensors.safetensors")
9
+ print('hiiiii')
10
 
11
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
12
+ print('data:', data)
13
  input = data['inputs']
14
+ print('input:', input)
15
  result = self.pipeline(input)
16
+ print('result:', result)
17
  return result