bienom's picture
hotfix
f36f22d
raw
history blame
346 Bytes
import numpy as np
import gradio as gr
from model import SegmentationTool
seg_tool = SegmentationTool()
def segment(input_img):
mask_image, transparent_mask_image, image, items, room = seg_tool.get_mask(image=input_img)
return mask_image
demo = gr.Interface(segment, gr.Image(), "image")
if __name__ == "__main__":
demo.launch()