SaladSlayer00 commited on
Commit
a36fb33
1 Parent(s): 8ace9a1

the REAL APP

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -31,11 +31,14 @@ def process_frame(webcam_image):
31
  processed_image = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
32
  return Image.fromarray(processed_image)
33
 
34
- # Gradio interface
35
  demo = gr.Interface(
36
- fn=process_frame,
37
- inputs=gr.Image(sources="webcam", tool="editor"),
38
- outputs="image"
39
  )
40
 
41
- demo.launch()
 
 
 
 
31
  processed_image = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
32
  return Image.fromarray(processed_image)
33
 
34
+
35
  demo = gr.Interface(
36
+ process_frame,
37
+ gr.Image(type="pil"),
38
+ "image"
39
  )
40
 
41
+ if __name__ == "__main__":
42
+ demo.launch()
43
+
44
+