File size: 746 Bytes
9ec9928 9ab5ebe 7d03d84 9ec9928 2996f95 9ec9928 2996f95 1b64326 2996f95 9ec9928 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
from rembg import remove
title = "Hintergrund-Entferner"
description = "This background remover tool is inspired by Evgeniy Hristoforu! and created by Ailex"
article = "<p style='text-align: center;'><a href='https://hf.co/openskyml' target='_blank'>🏠 Home page</a></p>"
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/[email protected]") as demo:
demo = gr.Interface(
fn=segment,
inputs="image",
outputs="image",
title=title,
description=description,
article=article,
css="style.css",
theme="ParityError/Interstellar"
)
demo.queue(concurrency_count=3)
demo.launch() |