Spaces:
Runtime error
Runtime error
sudhir2016
commited on
Commit
·
5ba19e8
1
Parent(s):
9241a4a
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio
|
2 |
import cv2
|
3 |
-
def infer(img):
|
4 |
-
|
5 |
-
|
|
|
6 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
7 |
iface.launch()
|
|
|
1 |
import gradio
|
2 |
import cv2
|
3 |
+
def infer(img,name):
|
4 |
+
out = cv2.Canny(img,100,200)
|
5 |
+
out2=cv2.putText(out,'hello',(50,50),cv2.FONT_HERSHEY_SIMPLEX,1,(255,0,0))
|
6 |
+
return out2
|
7 |
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
|
8 |
iface.launch()
|