Sultannn's picture
Update app.py
8d08454
raw
history blame
No virus
907 Bytes
# fork of my space
# add feature webcam(rear camera)
import gradio as gr
choices = ["YOLOXNano", "YOLOXTiny", "YOLOXS", "YOLOXM", "YOLOXL", "YOLOXX"]
description = "Demo for YOLOX(Object Detection). Models are YOLOXNano - YOLOXX,with rear camera"
article = "<a href='https://github.com/Megvii-BaseDetection/YOLOX' target='_blank'><u>YOLOX </u></a>is an anchor-free version of YOLO, with a simpler design but better performance!<br><br><p style='text-align: center'>Untuk penjelasan lihat di <a href='https://github.com/sultanbst123/YOLOX-Demo' target='_blank'><u>repo ku </u>😁</a></p>"
gr.Interface.load(
"spaces/Sultannn/YOLOX-Demo",
inputs=[
gr.inputs.Image(label="Input Image", source="webcam"),
gr.inputs.Dropdown(choices= choices, type="value", default='YOLOXS', label="Model")
],
article = article,
description = description,
theme = "default",
).launch(),