| 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) |
|
|
| |
| |
|
|
| 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() |