rizkidewanto commited on
Commit
3144a77
1 Parent(s): 9d9c98b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,5 +7,5 @@ def tes(a):
7
  gray_image = cv2.cvtColor(loaded_image,cv2.COLOR_BGR2GRAY)
8
  edged_image = cv2.Canny(gray_image, threshold1=30, threshold2=100)
9
  return edged_image
10
- coba=gr.Interface(fn=tes,inputs=gr.Webcam(),outputs=gr.Image())
11
  coba.launch(share=True)
 
7
  gray_image = cv2.cvtColor(loaded_image,cv2.COLOR_BGR2GRAY)
8
  edged_image = cv2.Canny(gray_image, threshold1=30, threshold2=100)
9
  return edged_image
10
+ coba=gr.Interface(fn=tes,inputs=gr.Webcam(label='Kamera'),outputs=gr.Image())
11
  coba.launch(share=True)