Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ with block:
|
|
63 |
''')
|
64 |
with gr.Row():
|
65 |
with gr.Column():
|
66 |
-
input_image = gr.Image(sources=None, type="pil",label="Upload",height=
|
67 |
prompt = gr.Textbox(label="Prompt")
|
68 |
negative_prompt = gr.Textbox(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")
|
69 |
num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
|
@@ -73,7 +73,7 @@ with block:
|
|
73 |
|
74 |
|
75 |
with gr.Column():
|
76 |
-
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[
|
77 |
ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
|
78 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
79 |
|
|
|
63 |
''')
|
64 |
with gr.Row():
|
65 |
with gr.Column():
|
66 |
+
input_image = gr.Image(sources=None, type="pil",label="Upload",height=600) # None for upload, ctrl+v and webcam
|
67 |
prompt = gr.Textbox(label="Prompt")
|
68 |
negative_prompt = gr.Textbox(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")
|
69 |
num_steps = gr.Slider(label="Number of steps", minimum=25, maximum=100, value=50, step=1)
|
|
|
73 |
|
74 |
|
75 |
with gr.Column():
|
76 |
+
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", columns=[1], height=600)
|
77 |
ips = [input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed]
|
78 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
79 |
|