Spaces:
Runtime error
Runtime error
Download app.py from dyguay/object-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/dyguay/object-detection-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/dyguay/object-detection-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dyguay/object-detection-api/resolve/main/app.py
1.36 kB
| 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() |