Spaces:
Runtime error
Runtime error
Commit
•
4684b86
1
Parent(s):
e0c8609
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import cv2
|
|
3 |
def infer(img,name):
|
4 |
out = cv2.Canny(img,100,200)
|
5 |
out1= cv2.resize(out,(250,250))
|
6 |
-
out2=cv2.putText(out1,name,(
|
7 |
return out2
|
8 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
9 |
iface.launch()
|
|
|
3 |
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 out2
|
8 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
9 |
iface.launch()
|