anujg1508 commited on
Commit
f4f42c3
·
1 Parent(s): ffa81ea

adding logging to handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -0
handler.py CHANGED
@@ -18,7 +18,9 @@ class EndpointHandler():
18
 
19
 
20
  def __call__(self, data:Any) -> List[List[Dict[str, float]]]:
 
21
  inputs = data.pop("inputs", data)
 
22
 
23
  with autocast(device.type):
24
  image = self.pipe(inputs, guidance_scale=7.5).images[0]
 
18
 
19
 
20
  def __call__(self, data:Any) -> List[List[Dict[str, float]]]:
21
+ print(data)
22
  inputs = data.pop("inputs", data)
23
+ print(inputs)
24
 
25
  with autocast(device.type):
26
  image = self.pipe(inputs, guidance_scale=7.5).images[0]