Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -599,6 +599,7 @@ with Blocks(
|
|
599 |
with gr.Row():
|
600 |
sketch_pad = ImageMask(label="Sketch Pad", elem_id="img2img_image")
|
601 |
out_imagebox = gr.Image(type="pil",elem_id="my_image" ,label="Parsed Sketch Pad", shape=(512,512))
|
|
|
602 |
with gr.Row():
|
603 |
clear_btn = gr.Button(value='Clear')
|
604 |
gen_btn = gr.Button(value='Generate')
|
@@ -614,19 +615,19 @@ with Blocks(
|
|
614 |
use_actual_mask = gr.Checkbox(value=False, label="Use actual mask for inpainting", visible=False)
|
615 |
with gr.Row():
|
616 |
fix_seed = gr.Checkbox(value=True, label="Fixed seed")
|
617 |
-
rand_seed = gr.Slider(minimum=0, maximum=
|
618 |
|
619 |
with gr.Row():
|
620 |
use_style_cond = gr.Checkbox(value=False,visible=False, label="Enable Style Condition")
|
621 |
style_cond_image = gr.Image(type="pil",visible=False, label="Style Condition", interactive=True)
|
622 |
-
with gr.Column(scale=4):
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
|
631 |
state = gr.State({})
|
632 |
|
@@ -706,7 +707,7 @@ with Blocks(
|
|
706 |
examples = [
|
707 |
[
|
708 |
'guide_imgs/0_a_cat_on_the_right_of_a_dog.jpg',
|
709 |
-
"
|
710 |
"a cat on the right of a dog",
|
711 |
'(291, 88, 481, 301)/(25, 64, 260, 391)',
|
712 |
1, 1
|
|
|
599 |
with gr.Row():
|
600 |
sketch_pad = ImageMask(label="Sketch Pad", elem_id="img2img_image")
|
601 |
out_imagebox = gr.Image(type="pil",elem_id="my_image" ,label="Parsed Sketch Pad", shape=(512,512))
|
602 |
+
out_gen_1 = gr.Image(type="pil", visible=True, show_label=False)
|
603 |
with gr.Row():
|
604 |
clear_btn = gr.Button(value='Clear')
|
605 |
gen_btn = gr.Button(value='Generate')
|
|
|
615 |
use_actual_mask = gr.Checkbox(value=False, label="Use actual mask for inpainting", visible=False)
|
616 |
with gr.Row():
|
617 |
fix_seed = gr.Checkbox(value=True, label="Fixed seed")
|
618 |
+
rand_seed = gr.Slider(minimum=0, maximum=500, step=1, value=100, label="Seed")
|
619 |
|
620 |
with gr.Row():
|
621 |
use_style_cond = gr.Checkbox(value=False,visible=False, label="Enable Style Condition")
|
622 |
style_cond_image = gr.Image(type="pil",visible=False, label="Style Condition", interactive=True)
|
623 |
+
# with gr.Column(scale=4):
|
624 |
+
# gr.HTML('<span style="font-size: 20px; font-weight: bold">Generated Images</span>')
|
625 |
+
# with gr.Row():
|
626 |
+
# out_gen_1 = gr.Image(type="pil", visible=True, show_label=False)
|
627 |
+
# out_gen_2 = gr.Image(type="pil", visible=False, show_label=False)
|
628 |
+
# with gr.Row():
|
629 |
+
# out_gen_3 = gr.Image(type="pil", visible=False, show_label=False)
|
630 |
+
# out_gen_4 = gr.Image(type="pil", visible=False, show_label=False)
|
631 |
|
632 |
state = gr.State({})
|
633 |
|
|
|
707 |
examples = [
|
708 |
[
|
709 |
'guide_imgs/0_a_cat_on_the_right_of_a_dog.jpg',
|
710 |
+
"cat;dog",
|
711 |
"a cat on the right of a dog",
|
712 |
'(291, 88, 481, 301)/(25, 64, 260, 391)',
|
713 |
1, 1
|