shivamkunkolikar
edit May8 10:51PM
d7c61bc
raw
history blame contribute delete
277 Bytes
import gradio as gr
from inference import get_output
from PIL import Image
def predict(image, mask):
return get_output(image, mask)
iface = gr.Interface(fn=predict, inputs=[gr.Image(type= "numpy"), gr.Image(type= "numpy")], outputs="image")
iface.launch(show_error=True)