HelloSun commited on
Commit
0f45713
1 Parent(s): e7f40fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -21,7 +21,7 @@ pipeline.compile()
21
 
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
- negative_prompt=""
25
  def infer(prompt, negative_prompt, num_inference_steps):
26
 
27
  image = pipeline(
@@ -72,13 +72,12 @@ with gr.Blocks(css=css) as demo:
72
  result = gr.Image(label="Result", show_label=False)
73
 
74
  with gr.Accordion("Advanced Settings", open=False):
75
- #with gr.Row():
76
- # negative_prompt = gr.Text(
77
- # label="Negative prompt",
78
- # max_lines=1,
79
- # placeholder="Enter a negative prompt",
80
- # visible=True,
81
- # )
82
 
83
  with gr.Row():
84
 
 
21
 
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, num_inference_steps):
26
 
27
  image = pipeline(
 
72
  result = gr.Image(label="Result", show_label=False)
73
 
74
  with gr.Accordion("Advanced Settings", open=False):
75
+ with gr.Row():
76
+ negative_prompt = gr.Text(
77
+ label="Negative prompt",
78
+ max_lines=1,
79
+ placeholder="Enter a negative prompt",
80
+ )
 
81
 
82
  with gr.Row():
83