HelloSun commited on
Commit
6c29290
1 Parent(s): 27a3c06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -20,13 +20,11 @@ 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
- promptappend="Photorealistic portrait, perfect anatomy, detailed face, natural hands, correct proportions, realistic style, fully clothed, family-friendly, 2D art"
24
-
25
 
26
  def infer(prompt, num_inference_steps):
27
 
28
  image = pipeline(
29
- prompt = prompt+promptappend,
30
  #negative_prompt = negative_prompt, #no negative_prompt keyword in LatentConsistencyPipelineMixin
31
  # guidance_scale = guidance_scale,
32
  num_inference_steps = num_inference_steps,
 
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,