refactor
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -42,7 +42,7 @@ class EndpointHandler():
|
|
42 |
# Run inference pipeline
|
43 |
with autocast(device.type):
|
44 |
if negative_prompt is None:
|
45 |
-
print(str(inputs), str(height), str(width), str(
|
46 |
image = self.pipe(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
|
47 |
image = image.images[0]
|
48 |
else:
|
|
|
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:
|