Spaces:
Runtime error
Runtime error
sudhir2016
commited on
Commit
•
e8fdd27
1
Parent(s):
7bb0e01
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,6 @@ def infer(img,name):
|
|
4 |
out = cv2.Canny(img,100,200)
|
5 |
out1= cv2.resize(out,(250,250))
|
6 |
out2=cv2.putText(out1,name,(10,25),4,1,(255,0,0))
|
7 |
-
return
|
8 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
9 |
iface.launch()
|
|
|
4 |
out = cv2.Canny(img,100,200)
|
5 |
out1= cv2.resize(out,(250,250))
|
6 |
out2=cv2.putText(out1,name,(10,25),4,1,(255,0,0))
|
7 |
+
return out2
|
8 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
9 |
iface.launch()
|