Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -34,14 +34,5 @@ def detect_eyes(image):
|
|
34 |
_, buffer = cv2.imencode('.jpg', image)
|
35 |
return buffer.tobytes()
|
36 |
|
37 |
-
|
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()
|