Spaces:
Runtime error
Runtime error
File size: 268 Bytes
af96bbc 5ba19e8 4fda476 4684b86 e8fdd27 9241a4a ea2e4cc |
1 2 3 4 5 6 7 8 9 |
import gradio
import cv2
def infer(img,name):
out = cv2.Canny(img,100,200)
out1= cv2.resize(out,(250,250))
out2=cv2.putText(out1,name,(10,25),4,1,(255,0,0))
return out2
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
iface.launch() |