yamildiego commited on
Commit
e181ddf
·
1 Parent(s): 1864f62

added negative promp

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -166,7 +166,8 @@ class EndpointHandler():
166
  pose_image_path = data.pop("pose_image_path", "https://i.ibb.co/TRCK4MS/examples-poses-pose2.jpg")
167
  style_name = data.pop("style_name", DEFAULT_STYLE_NAME)
168
  prompt = data.pop("inputs", "a man flying in the sky in Mars")
169
-
 
170
  identitynet_strength_ratio = 0.8
171
  adapter_strength_ratio = 0.8
172
  pose_strength = 0.5
 
166
  pose_image_path = data.pop("pose_image_path", "https://i.ibb.co/TRCK4MS/examples-poses-pose2.jpg")
167
  style_name = data.pop("style_name", DEFAULT_STYLE_NAME)
168
  prompt = data.pop("inputs", "a man flying in the sky in Mars")
169
+ negative_prompt = data.pop("negative_prompt", "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green")
170
+
171
  identitynet_strength_ratio = 0.8
172
  adapter_strength_ratio = 0.8
173
  pose_strength = 0.5