Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -109,12 +109,12 @@ def yolov8_img_inference(
|
|
109 |
|
110 |
inputs_image = [
|
111 |
# gr.inputs.Image(type="filepath", label="Input Image"),
|
112 |
-
gr.
|
113 |
-
gr.
|
114 |
default="linhcuem/cham_diem_yolov8", label="Model"),
|
115 |
-
gr.
|
116 |
-
gr.
|
117 |
-
gr.
|
118 |
]
|
119 |
|
120 |
# outputs_image =gr.outputs.Image(type="filepath", label="Output Image")
|
|
|
109 |
|
110 |
inputs_image = [
|
111 |
# gr.inputs.Image(type="filepath", label="Input Image"),
|
112 |
+
gr.Image(type="pil"),
|
113 |
+
gr.Dropdown(["linhcuem/linhcuem/cham_diem_yolov8"],
|
114 |
default="linhcuem/cham_diem_yolov8", label="Model"),
|
115 |
+
gr.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
116 |
+
gr.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
117 |
+
gr.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
|
118 |
]
|
119 |
|
120 |
# outputs_image =gr.outputs.Image(type="filepath", label="Output Image")
|