Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# fork of my space
|
2 |
+
# add feature webcam(rear camera)
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
description = "Demo for YOLOX(Object Detection). Models are YOLOXNano - YOLOXX,with rear camera"
|
6 |
+
|
7 |
+
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>"
|
8 |
+
|
9 |
+
gr.Interface.load(
|
10 |
+
"spaces/Sultannn/YOLOX-Demo",
|
11 |
+
inputs=[
|
12 |
+
gr.inputs.Image(label="Input Image", source="webcam"),
|
13 |
+
gr.inputs.Dropdown(choices= choices, type="value", default='YOLOXS', label="Model")
|
14 |
+
],
|
15 |
+
article = article,
|
16 |
+
description = description
|
17 |
+
).launch()
|