Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,29 +69,34 @@ def evaluate(fg_image: PIL.Image.Image, bg_image: PIL.Image.Image, num_sampling_
|
|
| 69 |
|
| 70 |
return (np.array(img_pasted), np.array(output_image))
|
| 71 |
|
| 72 |
-
with gr.Blocks(
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
gr.Markdown("")
|
| 96 |
|
| 97 |
with gr.Row():
|
|
@@ -119,4 +124,4 @@ button[aria-label="Open in new tab"] {
|
|
| 119 |
bg_gallery.select(bg_gallery_selected, inputs=bg_gallery, outputs=bg_image)
|
| 120 |
|
| 121 |
if __name__ == "__main__":
|
| 122 |
-
|
|
|
|
| 69 |
|
| 70 |
return (np.array(img_pasted), np.array(output_image))
|
| 71 |
|
| 72 |
+
with gr.Blocks() as app:
|
| 73 |
+
gr.HTML("""
|
| 74 |
+
<style>
|
| 75 |
+
body::before {
|
| 76 |
+
content: "";
|
| 77 |
+
display: block;
|
| 78 |
+
height: 320px;
|
| 79 |
+
background-color: var(--body-background-fill);
|
| 80 |
+
}
|
| 81 |
+
button[aria-label="Fullscreen"], button[aria-label="Fullscreen"]:hover {
|
| 82 |
+
display: none !important;
|
| 83 |
+
visibility: hidden !important;
|
| 84 |
+
opacity: 0 !important;
|
| 85 |
+
pointer-events: none !important;
|
| 86 |
+
}
|
| 87 |
+
button[aria-label="Share"], button[aria-label="Share"]:hover {
|
| 88 |
+
display: none !important;
|
| 89 |
+
}
|
| 90 |
+
button[aria-label="Download"] {
|
| 91 |
+
transform: scale(3);
|
| 92 |
+
transform-origin: top right;
|
| 93 |
+
margin: 0 !important;
|
| 94 |
+
padding: 6px !important;
|
| 95 |
+
}
|
| 96 |
+
</style>
|
| 97 |
+
""")
|
| 98 |
+
|
| 99 |
+
gr.Markdown("")
|
| 100 |
gr.Markdown("")
|
| 101 |
|
| 102 |
with gr.Row():
|
|
|
|
| 124 |
bg_gallery.select(bg_gallery_selected, inputs=bg_gallery, outputs=bg_image)
|
| 125 |
|
| 126 |
if __name__ == "__main__":
|
| 127 |
+
app.launch(share=True)
|