adding logging to handler.py
Browse files- 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]
|