Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -766,7 +766,38 @@ with gr.Blocks(css=css) as demo:
|
|
766 |
value=False,
|
767 |
interactive=True
|
768 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
# ---------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
770 |
|
771 |
gr.Examples(examples=examples, inputs=[prompt], label="Examples for prompt:")
|
772 |
gr.Examples(examples=examples_negative, inputs=[negative_prompt], label="Examples for negative prompt:")
|
|
|
766 |
value=False,
|
767 |
interactive=True
|
768 |
)
|
769 |
+
|
770 |
+
# LCM_Adapter ------------------------------------------------------------------------------------------------
|
771 |
+
with gr.Blocks():
|
772 |
+
with gr.Row():
|
773 |
+
use_LCM_adapter = gr.Checkbox(
|
774 |
+
label="Use LCM_Adapter",
|
775 |
+
value=False,
|
776 |
+
)
|
777 |
+
|
778 |
+
with gr.Column(visible=False) as LCM_adapter_options:
|
779 |
+
ip_adapter_mode = gr.Dropdown(
|
780 |
+
label="Ip_Adapter Mode",
|
781 |
+
choices=[
|
782 |
+
"lcm-lora-sdv1-5 ",
|
783 |
+
],
|
784 |
+
value="lcm-lora-sdv1-5 ",
|
785 |
+
interactive=True,
|
786 |
+
)
|
787 |
+
|
788 |
+
use_LCM_adapter.change(
|
789 |
+
fn=lambda x: gr.update(visible=x),
|
790 |
+
inputs=use_LCM_adapter,
|
791 |
+
outputs=LCM_adapter_options
|
792 |
+
)
|
793 |
# ---------------------------------------------------------------------------------------------------------
|
794 |
+
|
795 |
+
|
796 |
+
|
797 |
+
|
798 |
+
|
799 |
+
|
800 |
+
|
801 |
|
802 |
gr.Examples(examples=examples, inputs=[prompt], label="Examples for prompt:")
|
803 |
gr.Examples(examples=examples_negative, inputs=[negative_prompt], label="Examples for negative prompt:")
|