Spaces:
Build error
Build error
Update app.py
Browse files68 unmodified lines69707172737475767778798081828384858687888990919293947273747576777879808182838485868788899091929394959697989910010110221 unmodified lines12412512612212768 unmodified lines
return (np.array(img_pasted), np.array(output_image))
with gr.Blocks(css="""body::before { content: ""; display: block; height: 320px; background-color: inherit;}button[aria-label="Download"] { transform: scale(3); transform-origin: top right; margin: 0 !important; padding: 6px !important;}button[aria-label="Share"] { display: none;}button[aria-label="Copy link"] { display: none;}button[aria-label="Open in new tab"] { display: none;}""", title="") as demo:with gr.Blocks() as app: gr.HTML(""" <style> body::before { content: ""; display: block; height: 320px; background-color: var(--body-background-fill); } button[aria-label="Fullscreen"], button[aria-label="Fullscreen"]:hover { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; } button[aria-label="Share"], button[aria-label="Share"]:hover { display: none !important; } button[aria-label="Download"] { transform: scale(3); transform-origin: top right; margin: 0 !important; padding: 6px !important; } </style> """)
gr.Markdown("") gr.Markdown("")
with gr.Row():21 unmodified lines bg_gallery.select(bg_gallery_selected, inputs=bg_gallery, outputs=bg_image)
if __name__ == "__main__": demo.queue().launch(show_api=False) app.launch(share=True)app.py+29-24