Spaces:
Build error
Build error
Mark Liu commited on
Commit ·
0937ead
1
Parent(s): 460602c
Update app.py
Browse files97 unmodified lines989910010110210310410510697 unmodified linesreturn Image.fromarray(foreground)title = "MODNet Background Remover"description = "Gradio demo for MODNet, a model that can remove the background from a given image. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."article = "<div style='text-align: center;'> <a href='https://github.com/ZHKKKe/MODNet' target='_blank'>Github Repo</a> | <a href='https://arxiv.org/abs/2011.11961' target='_blank'>MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition</a> </div>"url = "https://huggingface.co/datasets/nateraw/background-remover-files/resolve/main/twitter_profile_pic.jpeg"image = Image.open(requests.get(url, stream=True).raw)97 unmodified lines989910010110210310410510697 unmodified linesreturn Image.fromarray(foreground)title = "Image Background Remover"description = "Remove Background from Image for Free. "article = "<div style='text-align: center;'> </div>"url = "https://huggingface.co/datasets/nateraw/background-remover-files/resolve/main/twitter_profile_pic.jpeg"image = Image.open(requests.get(url, stream=True).raw)
app.py+3-3