Update injection_main_HF.py
Browse files- injection_main_HF.py +6 -5
injection_main_HF.py
CHANGED
@@ -606,6 +606,10 @@ if __name__ == "__main__":
|
|
606 |
""")
|
607 |
with gr.Row():
|
608 |
with gr.Column():
|
|
|
|
|
|
|
|
|
609 |
text_input = gr.Textbox(
|
610 |
value="An impressionist painting",
|
611 |
label="Text Prompt",
|
@@ -613,10 +617,6 @@ if __name__ == "__main__":
|
|
613 |
lines=2,
|
614 |
placeholder="Enter a text prompt",
|
615 |
)
|
616 |
-
image_input = gr.Image(
|
617 |
-
label="Content image (will be resized to 512x512)",
|
618 |
-
interactive=True,
|
619 |
-
)
|
620 |
with gr.Accordion("Advanced settings"):
|
621 |
with gr.Column():
|
622 |
cfg_slider = gr.Slider(
|
@@ -656,7 +656,8 @@ if __name__ == "__main__":
|
|
656 |
gr.Examples(
|
657 |
examples = examples,
|
658 |
inputs = [text_input, image_input],
|
659 |
-
|
|
|
660 |
)
|
661 |
submit_btn.click(
|
662 |
fn=style_transfer_app,
|
|
|
606 |
""")
|
607 |
with gr.Row():
|
608 |
with gr.Column():
|
609 |
+
image_input = gr.Image(
|
610 |
+
label="Content image (will be resized to 512x512)",
|
611 |
+
interactive=True,
|
612 |
+
)
|
613 |
text_input = gr.Textbox(
|
614 |
value="An impressionist painting",
|
615 |
label="Text Prompt",
|
|
|
617 |
lines=2,
|
618 |
placeholder="Enter a text prompt",
|
619 |
)
|
|
|
|
|
|
|
|
|
620 |
with gr.Accordion("Advanced settings"):
|
621 |
with gr.Column():
|
622 |
cfg_slider = gr.Slider(
|
|
|
656 |
gr.Examples(
|
657 |
examples = examples,
|
658 |
inputs = [text_input, image_input],
|
659 |
+
outputs = [image_output]
|
660 |
+
cache_examples='lazy'
|
661 |
)
|
662 |
submit_btn.click(
|
663 |
fn=style_transfer_app,
|