Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -109,13 +109,12 @@ def run_demo():
|
|
109 |
)
|
110 |
|
111 |
prompt = gr.Textbox(label="Prompt")
|
112 |
-
negative_prompt = "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
|
113 |
num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
|
114 |
controlnet_conditioning_scale = gr.Slider(label="ControlNet conditioning scale", minimum=0.1, maximum=2.0, value=1.0, step=0.05)
|
115 |
seed = gr.Slider(label="Seed", minimum=0, maximum=2147483647, step=1, randomize=True,)
|
116 |
run_button = gr.Button(value="Run")
|
117 |
|
118 |
-
|
119 |
with gr.Column():
|
120 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[2], height='auto')
|
121 |
ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
|
|
|
109 |
)
|
110 |
|
111 |
prompt = gr.Textbox(label="Prompt")
|
112 |
+
negative_prompt = gr.Textbox(visible=False, label="Negative prompt", value="Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers")
|
113 |
num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
|
114 |
controlnet_conditioning_scale = gr.Slider(label="ControlNet conditioning scale", minimum=0.1, maximum=2.0, value=1.0, step=0.05)
|
115 |
seed = gr.Slider(label="Seed", minimum=0, maximum=2147483647, step=1, randomize=True,)
|
116 |
run_button = gr.Button(value="Run")
|
117 |
|
|
|
118 |
with gr.Column():
|
119 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[2], height='auto')
|
120 |
ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
|