HelloSun commited on
Commit
50a1814
·
verified ·
1 Parent(s): e65963a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,13 +22,13 @@ pipeline.compile()
22
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
23
  #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, "
24
 
25
- def infer(prompt, num_inference_steps):
26
 
27
  image = pipeline(
28
  prompt = prompt,
29
  #negative_prompt = negative_prompt,
30
  # guidance_scale = guidance_scale,
31
- num_inference_steps = num_inference_steps,
32
  width = width,
33
  height = height,
34
  num_images_per_prompt=num_images,
@@ -96,7 +96,7 @@ with gr.Blocks(css=css) as demo:
96
 
97
  run_button.click(
98
  fn = infer,
99
- inputs = [prompt, num_inference_steps],
100
  outputs = [result]
101
  )
102
 
 
22
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
23
  #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, "
24
 
25
+ def infer(prompt, negative_prompt):
26
 
27
  image = pipeline(
28
  prompt = prompt,
29
  #negative_prompt = negative_prompt,
30
  # guidance_scale = guidance_scale,
31
+ #num_inference_steps = num_inference_steps,
32
  width = width,
33
  height = height,
34
  num_images_per_prompt=num_images,
 
96
 
97
  run_button.click(
98
  fn = infer,
99
+ inputs = [prompt, negative_prompt],
100
  outputs = [result]
101
  )
102