HelloSun commited on
Commit
82fd44d
1 Parent(s): 8bb7ab1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,13 +21,13 @@ pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
21
  pipeline.compile()
22
 
23
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
24
- #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, "
25
 
26
  def infer(prompt, num_inference_steps):
27
 
28
  image = pipeline(
29
  prompt = prompt,
30
- #negative_prompt = negative_prompt,
31
  guidance_scale = 7.0,
32
  num_inference_steps = num_inference_steps,
33
  width = width,
 
21
  pipeline.compile()
22
 
23
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
24
+ 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, "
25
 
26
  def infer(prompt, num_inference_steps):
27
 
28
  image = pipeline(
29
  prompt = prompt,
30
+ negative_prompt = negative_prompt,
31
  guidance_scale = 7.0,
32
  num_inference_steps = num_inference_steps,
33
  width = width,