Spaces:
Runtime error
Runtime error
File size: 1,358 Bytes
8e19547 533a125 8e19547 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import gradio as gr
from ObjectDetector import Detector
detector = Detector()
iface = gr.Interface(detector.detectObject, gr.inputs.Image(), "image",
title="Object Detection API",
article="""Object detection is a computer vision technique that allows us to identify and locate objects in an image or video. With this kind of identification and localization, object detection can be used to count objects in a scene and determine and track their precise locations, all while accurately labeling them.
<br>
<a target="_blank" href="https://github.com/dyguay/object-detection-api">Github Link</a>
<br><br>
<footer id="main-footer">
Copyright © 2021
</footer>""",
css="""
body {
background-color: #f4e1e6;
text-align: center;
font-size: 16px;
}
a {
color: #096ac5;
}
a:hover {
color: #096ac5;
}"""
)
iface.launch() |