Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -44,7 +44,7 @@ class EndpointHandler():
|
|
| 44 |
height = data.get("height", None)
|
| 45 |
num_inference_steps = data.get("steps", 30)
|
| 46 |
guidance_scale = data.get("cfg_scale", 7)
|
| 47 |
-
|
| 48 |
|
| 49 |
|
| 50 |
# Extract controlnet configuration from payload
|
|
@@ -61,7 +61,7 @@ class EndpointHandler():
|
|
| 61 |
width=width,
|
| 62 |
controlnet_conditioning_scale=1.0,
|
| 63 |
generator=self.generator,
|
| 64 |
-
|
| 65 |
)
|
| 66 |
|
| 67 |
# Get the generated image
|
|
|
|
| 44 |
height = data.get("height", None)
|
| 45 |
num_inference_steps = data.get("steps", 30)
|
| 46 |
guidance_scale = data.get("cfg_scale", 7)
|
| 47 |
+
|
| 48 |
|
| 49 |
|
| 50 |
# Extract controlnet configuration from payload
|
|
|
|
| 61 |
width=width,
|
| 62 |
controlnet_conditioning_scale=1.0,
|
| 63 |
generator=self.generator,
|
| 64 |
+
|
| 65 |
)
|
| 66 |
|
| 67 |
# Get the generated image
|