supArs commited on
Commit
457b011
1 Parent(s): f27b964

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -34,5 +34,5 @@ def detect_eyes(image):
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()
 
34
  _, buffer = cv2.imencode('.jpg', image)
35
  return buffer.tobytes()
36
 
37
+ iface = gr.Interface(fn=detect_eyes, inputs=gr.Image('pil'), outputs=gr.Image('pil'))
38
  iface.launch()