File size: 353 Bytes
dea614a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

def detect_faces(image ) : 
    # detect faces 
    return image 

iface = gr.Interface(  fn=detect_faces,
    inputs="image",
    outputs="image",
    title="Face Detection using Haar Cascade Classifier ",
    description="Upload an image,and the model will detect faces and draw bounding boxes around them.",
    )

iface.launch()