Downloads · 30 days
0
Rattirach/WKUnbackground
WKUnbackground is a machine learning model from Rattirach. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
--- license: unknown !pip install rembg !pip install onnxruntime !pip install gradio
Downloads · 30 days
0
Access
Public
Updated Feb 20, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 69%
From the Hugging Face model README
license: unknown !pip install rembg !pip install onnxruntime !pip install gradio
import rembg import gradio as gr from PIL import Image
def remove_background(input_image): """ลบพื้นหลังของรูปภาพ""" output_image = rembg.remove(input_image) return output_image
iface = gr.Interface( fn=remove_background, inputs=gr.Image(type="pil"), outputs=gr.Image(type="pil"), title="โปรแกรมลบพื้นหลังรูปภาพ", description="อัปโหลดรูปภาพเพื่อลบพื้นหลัง", )
iface.save("remove_bg_app.html")