HelloSun commited on
Commit
258eed8
1 Parent(s): 3a6018a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,13 +18,14 @@ batch_size, num_images, height, width = 1, 1, 512, 512
18
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
19
  pipeline.compile()
20
 
21
- negative_prompt="easynegative,bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs, nsfw, nude, censored, "
 
22
 
23
  def infer(prompt, num_inference_steps):
24
 
25
  image = pipeline(
26
  prompt = prompt,
27
- negative_prompt = negative_prompt, #no negative_prompt keyword in LatentConsistencyPipelineMixin
28
  # guidance_scale = guidance_scale,
29
  num_inference_steps = num_inference_steps,
30
  width = width,
 
18
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
19
  pipeline.compile()
20
 
21
+ #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
22
+ #negative_prompt="easynegative,bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs, nsfw, nude, censored, "
23
 
24
  def infer(prompt, num_inference_steps):
25
 
26
  image = pipeline(
27
  prompt = prompt,
28
+ #negative_prompt = negative_prompt, #no negative_prompt keyword in LatentConsistencyPipelineMixin
29
  # guidance_scale = guidance_scale,
30
  num_inference_steps = num_inference_steps,
31
  width = width,