supArs commited on
Commit
f27b964
1 Parent(s): 36512f8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -10
main.py CHANGED
@@ -34,14 +34,5 @@ def detect_eyes(image):
34
  _, buffer = cv2.imencode('.jpg', image)
35
  return buffer.tobytes()
36
 
37
- # Create a Gradio interface
38
- iface = gr.Interface(fn=detect_eyes)
39
-
40
- # Add an image input to the interface
41
- iface.add_input("Image", gr.inputs.Image())
42
-
43
- # Add an image output to the interface
44
- iface.add_output("Detected Eyes", gr.outputs.Image())
45
-
46
- # Launch the interface
47
  iface.launch()
 
34
  _, buffer = cv2.imencode('.jpg', image)
35
  return buffer.tobytes()
36
 
37
+ iface = gr.Interface(fn=detect_eyes, inputs=gr.Image(), outputs=gr.outputs.Image())
 
 
 
 
 
 
 
 
 
38
  iface.launch()