Spaces:
Runtime error
Runtime error
Update injection_main_HF.py
Browse files- injection_main_HF.py +17 -8
injection_main_HF.py
CHANGED
|
@@ -585,16 +585,25 @@ if __name__ == "__main__":
|
|
| 585 |
image = transforms.ToPILImage()(image[0])
|
| 586 |
|
| 587 |
examples.append([entry["target_prompt"], image, None, None, None])
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
with gr.Blocks() as app:
|
| 595 |
-
|
| 596 |
with gr.Column():
|
| 597 |
-
gr.Markdown("Artist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 598 |
with gr.Row():
|
| 599 |
with gr.Column():
|
| 600 |
text_input = gr.Textbox(
|
|
|
|
| 585 |
image = transforms.ToPILImage()(image[0])
|
| 586 |
|
| 587 |
examples.append([entry["target_prompt"], image, None, None, None])
|
| 588 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 589 |
with gr.Blocks() as app:
|
| 590 |
+
|
| 591 |
with gr.Column():
|
| 592 |
+
gr.Markdown("# Artist: Aesthetically Controllable Text-Driven Stylization without Training")
|
| 593 |
+
gr.Markdown("## Interactive Demo, HF space version")
|
| 594 |
+
gr.HTML("""
|
| 595 |
+
<div style="display:flex;column-gap:4px;">
|
| 596 |
+
<a href='https://diffusionartist.github.io/'>
|
| 597 |
+
<img src='https://img.shields.io/badge/Project-Page-green'>
|
| 598 |
+
</a>
|
| 599 |
+
<a href='https://github.com/songrise/Artist'>
|
| 600 |
+
<img src='https://img.shields.io/badge/Code-github-blue'>
|
| 601 |
+
</a>
|
| 602 |
+
<a href='https://arxiv.org/abs/2407.15842'>
|
| 603 |
+
<img src='https://img.shields.io/badge/Paper-Arxiv-red'>
|
| 604 |
+
</a>
|
| 605 |
+
</div>
|
| 606 |
+
""")
|
| 607 |
with gr.Row():
|
| 608 |
with gr.Column():
|
| 609 |
text_input = gr.Textbox(
|