Update app.py
Browse files
app.py
CHANGED
@@ -379,7 +379,7 @@ background-color: transparent !important;
|
|
379 |
|
380 |
background: url(https://vivawaves.com/wavesweaveslogo.svg) top center no-repeat !important;
|
381 |
|
382 |
-
margin-top:
|
383 |
|
384 |
}
|
385 |
|
@@ -573,6 +573,11 @@ border: 0;
|
|
573 |
|
574 |
}
|
575 |
|
|
|
|
|
|
|
|
|
|
|
576 |
input.scroll-hide.svelte-1f354aw {
|
577 |
|
578 |
overflow: hidden !important;
|
@@ -583,38 +588,24 @@ div#component-5 {
|
|
583 |
|
584 |
border-radius: 40px;
|
585 |
|
586 |
-
background:
|
587 |
|
588 |
-
opacity:
|
589 |
|
590 |
}
|
591 |
|
592 |
#component-6 {
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
font-size: 30px;
|
605 |
-
|
606 |
-
letter-spacing:-1px;
|
607 |
-
|
608 |
-
position: relative;
|
609 |
-
|
610 |
-
z-index: 1;
|
611 |
-
|
612 |
-
backdrop-filter: blur(18px);
|
613 |
-
|
614 |
-
-webkit-backdrop-filter: blur(18px);
|
615 |
-
|
616 |
-
display: none;
|
617 |
-
|
618 |
}
|
619 |
|
620 |
div#component-0 {
|
@@ -811,13 +802,51 @@ div#component-8 {
|
|
811 |
|
812 |
margin-bottom: 70px;
|
813 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
814 |
}
|
815 |
"""
|
816 |
|
817 |
with gr.Blocks(css=css) as demo:
|
818 |
with gr.Row():
|
819 |
-
with gr.Accordion(label="
|
820 |
-
model = gr.Radio(interactive=
|
821 |
|
822 |
with gr.Tabs() as tabs:
|
823 |
|
@@ -827,7 +856,10 @@ with gr.Blocks(css=css) as demo:
|
|
827 |
with gr.Column(scale=3):
|
828 |
with gr.Tab("Основные настройки"):
|
829 |
with gr.Column(scale=6, min_width=600):
|
830 |
-
prompt = gr.Textbox("", placeholder="
|
|
|
|
|
|
|
831 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
832 |
|
833 |
with gr.Row():
|
@@ -846,7 +878,7 @@ with gr.Blocks(css=css) as demo:
|
|
846 |
|
847 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
848 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
849 |
-
text_button = gr.Button("
|
850 |
image_output = gr.Image()
|
851 |
|
852 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
|
|
379 |
|
380 |
background: url(https://vivawaves.com/wavesweaveslogo.svg) top center no-repeat !important;
|
381 |
|
382 |
+
margin-top: 260px;
|
383 |
|
384 |
}
|
385 |
|
|
|
573 |
|
574 |
}
|
575 |
|
576 |
+
div#component-9 {
|
577 |
+
border: 0 !important;
|
578 |
+
}
|
579 |
+
|
580 |
+
|
581 |
input.scroll-hide.svelte-1f354aw {
|
582 |
|
583 |
overflow: hidden !important;
|
|
|
588 |
|
589 |
border-radius: 40px;
|
590 |
|
591 |
+
background: transparent !important;
|
592 |
|
593 |
+
opacity: 1;
|
594 |
|
595 |
}
|
596 |
|
597 |
#component-6 {
|
598 |
+
border-radius: 40px;
|
599 |
+
background: #d7661500;
|
600 |
+
border: none;
|
601 |
+
border-left: 0;
|
602 |
+
font-size: 30px;
|
603 |
+
letter-spacing: -1px;
|
604 |
+
position: relative;
|
605 |
+
z-index: 1;
|
606 |
+
backdrop-filter: none;
|
607 |
+
-webkit-backdrop-filter: none;
|
608 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
}
|
610 |
|
611 |
div#component-0 {
|
|
|
802 |
|
803 |
margin-bottom: 70px;
|
804 |
|
805 |
+
}
|
806 |
+
div#component-15 {display: none;}
|
807 |
+
|
808 |
+
div#component-18 {
|
809 |
+
display: none;
|
810 |
+
}
|
811 |
+
|
812 |
+
div#component-1 {
|
813 |
+
display: none;
|
814 |
+
}
|
815 |
+
|
816 |
+
button.selected.svelte-kqij2n {
|
817 |
+
display: none;
|
818 |
+
}
|
819 |
+
|
820 |
+
button.svelte-kqij2n {
|
821 |
+
display: none;
|
822 |
+
}
|
823 |
+
|
824 |
+
.tab-nav.scroll-hide.svelte-kqij2n {
|
825 |
+
display: none;
|
826 |
+
}
|
827 |
+
|
828 |
+
.svelte-vt1mxs.gap {
|
829 |
+
border-radius: 20px;
|
830 |
+
}
|
831 |
+
|
832 |
+
div#component-6 {padding: 26px;}
|
833 |
+
|
834 |
+
button#generate {
|
835 |
+
background: #eb7623;
|
836 |
+
border-radius: 40px;
|
837 |
+
padding: 16px;
|
838 |
+
color: #FFF;
|
839 |
+
FONT-SIZE: large;
|
840 |
+
border: 2px solid #ff7600;
|
841 |
+
border-top: 0px solid;
|
842 |
+
box-shadow: 0px 12px 10px -10px #ff7600;
|
843 |
}
|
844 |
"""
|
845 |
|
846 |
with gr.Blocks(css=css) as demo:
|
847 |
with gr.Row():
|
848 |
+
with gr.Accordion(label="Models", open=False):
|
849 |
+
model = gr.Radio(interactive=False, value="epicrealism_naturalSinRC1VAE.safetensors [90a4c676]", show_label=False, choices=prodia_client.list_models())
|
850 |
|
851 |
with gr.Tabs() as tabs:
|
852 |
|
|
|
856 |
with gr.Column(scale=3):
|
857 |
with gr.Tab("Основные настройки"):
|
858 |
with gr.Column(scale=6, min_width=600):
|
859 |
+
prompt = gr.Textbox("", placeholder="Take a deep breath and think... Weaves is the world's most expensive stress reliever ✨ And we share it freely.", show_label=False, lines=3)
|
860 |
+
|
861 |
+
with gr.Row():
|
862 |
+
with gr.Column(scale=1):
|
863 |
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
864 |
|
865 |
with gr.Row():
|
|
|
878 |
|
879 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
880 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
881 |
+
text_button = gr.Button("Weave", variant='primary', elem_id="generate")
|
882 |
image_output = gr.Image()
|
883 |
|
884 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|