import gradio as gr from rembg import remove title = "RBOI" description = "This background remover tool is designed by Evgeniy Hristoforu!" article = "
" def segment(image): return remove(image) # Die folgende Zeile scheint nicht benötigt zu werden und wurde entfernt # with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo: demo = gr.Interface( fn=segment, inputs="image", outputs="image", title=title, description=description, article=article, css="style.css", theme="NoCrypt/miku@1.2.1" ) demo.queue(concurrency_count=3) demo.launch()