charleselena
commited on
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -118,11 +118,11 @@ class EndpointHandler():
|
|
118 |
# hyperparamters
|
119 |
negatice_prompt = data.pop("negative_prompt", None)
|
120 |
num_inference_steps = data.pop("num_inference_steps", 30)
|
121 |
-
guidance_scale = data.pop("guidance_scale", 7.
|
122 |
negative_prompt = data.pop("negative_prompt", None)
|
123 |
height = data.pop("height", None)
|
124 |
width = data.pop("width", None)
|
125 |
-
controlnet_conditioning_scale = data.pop("controlnet_conditioning_scale", 1.
|
126 |
|
127 |
# process image
|
128 |
image = self.decode_base64_image(image)
|
|
|
118 |
# hyperparamters
|
119 |
negatice_prompt = data.pop("negative_prompt", None)
|
120 |
num_inference_steps = data.pop("num_inference_steps", 30)
|
121 |
+
guidance_scale = data.pop("guidance_scale", 7.0)
|
122 |
negative_prompt = data.pop("negative_prompt", None)
|
123 |
height = data.pop("height", None)
|
124 |
width = data.pop("width", None)
|
125 |
+
controlnet_conditioning_scale = data.pop("controlnet_conditioning_scale", 1.5)
|
126 |
|
127 |
# process image
|
128 |
image = self.decode_base64_image(image)
|