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()