Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
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 |
|