Spaces:
Running
Running
Commit
·
ae595e3
1
Parent(s):
0299389
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,28 +58,27 @@ def ex():
|
|
| 58 |
demo = gr.Blocks(css=".container {max-width: 530px; margin: auto;} #gallery {min-height: 22rem; margin-bottom: 15px; margin-left: auto; margin-right: auto; border-bottom-right-radius: .5rem !important; border-bottom-left-radius: .5rem !important;} #gallery>div>.h-full {min-height: 20rem;} #gallery>.gallery-item {background-color: transparent !important;}")
|
| 59 |
|
| 60 |
with demo:
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
</div>
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
"""
|
| 80 |
-
<div class="footer">
|
| 81 |
-
<div style='text-align: center;'>Minecraft Skin Diffusion by <a href='https://twitter.com/wine_ineff' target='_blank'>Artsem Holub (WiNE-iNEFF)</a></div>
|
| 82 |
-
</div>
|
| 83 |
-
""")
|
| 84 |
|
| 85 |
demo.launch()
|
|
|
|
| 58 |
demo = gr.Blocks(css=".container {max-width: 530px; margin: auto;} #gallery {min-height: 22rem; margin-bottom: 15px; margin-left: auto; margin-right: auto; border-bottom-right-radius: .5rem !important; border-bottom-left-radius: .5rem !important;} #gallery>div>.h-full {min-height: 20rem;} #gallery>.gallery-item {background-color: transparent !important;}")
|
| 59 |
|
| 60 |
with demo:
|
| 61 |
+
gr.HTML(
|
| 62 |
+
"""
|
| 63 |
+
<div style="text-align: center; margin: 0 auto;">
|
| 64 |
+
<div style="display: inline-flex;align-items: center;gap: 0.8rem;font-size: 1.75rem;">
|
| 65 |
+
<img src='https://huggingface.co/spaces/WiNE-iNEFF/MinecraftSkin-Diffusion/resolve/main/MSD_7.png'>
|
| 66 |
+
</div>
|
| 67 |
+
<p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
|
| 68 |
+
Gradio demo for Minecraft Skin Diffusion. This is simple Unconditional Diffusion Model that will help you generate skins for game Minecraft.
|
| 69 |
+
</p>
|
| 70 |
</div>
|
| 71 |
+
""")
|
| 72 |
+
with gr.Column():
|
| 73 |
+
with gr.Row().style(equal_height=True):
|
| 74 |
+
gall = gr.Gallery(elem_id='gallery').style(grid=[4], height="auto", show_share_button=True)
|
| 75 |
+
greet_btn = gr.Button("Generate")
|
| 76 |
+
greet_btn.click(fn=ex, outputs=gall)
|
| 77 |
+
gr.HTML(
|
| 78 |
+
"""
|
| 79 |
+
<div class="footer">
|
| 80 |
+
<div style='text-align: center;'>Minecraft Skin Diffusion by <a href='https://twitter.com/wine_ineff' target='_blank'>Artsem Holub (WiNE-iNEFF)</a></div>
|
| 81 |
+
</div>
|
| 82 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
demo.launch()
|