Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -42,11 +42,11 @@ class EndpointHandler():
|
|
42 |
# Run inference pipeline
|
43 |
with autocast(device.type):
|
44 |
if negative_prompt is None:
|
45 |
-
print(
|
46 |
image = self.pipe(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
|
47 |
image = image.images[0]
|
48 |
else:
|
49 |
-
print(
|
50 |
image = self.pipe(prompt=inputs, negative_prompt=negative_prompt, height=height, width=width, guidance_scale=float(guidance_scale))
|
51 |
image = image.images[0]
|
52 |
|
|
|
42 |
# Run inference pipeline
|
43 |
with autocast(device.type):
|
44 |
if negative_prompt is None:
|
45 |
+
print(str(inputs), str(height), str(width), str(guidance_scale_)
|
46 |
image = self.pipe(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
|
47 |
image = image.images[0]
|
48 |
else:
|
49 |
+
print(str(inputs), str(height), str(negative_prompt), str(width), str(guidance_scale))
|
50 |
image = self.pipe(prompt=inputs, negative_prompt=negative_prompt, height=height, width=width, guidance_scale=float(guidance_scale))
|
51 |
image = image.images[0]
|
52 |
|