Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,11 @@ model = YOLO(current_model_name)
|
|
| 31 |
|
| 32 |
|
| 33 |
def yolov8_inference(
|
| 34 |
-
image: gr.
|
| 35 |
-
model_name: gr.
|
| 36 |
-
image_size: gr.
|
| 37 |
-
conf_threshold: gr.
|
| 38 |
-
iou_threshold: gr.
|
| 39 |
):
|
| 40 |
"""
|
| 41 |
YOLOv8 inference function
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
def yolov8_inference(
|
| 34 |
+
image: gr.Image = None,
|
| 35 |
+
model_name: gr.Dropdown = None,
|
| 36 |
+
image_size: gr.Slider = 640,
|
| 37 |
+
conf_threshold: gr.Slider = 0.25,
|
| 38 |
+
iou_threshold: gr.Slider = 0.45,
|
| 39 |
):
|
| 40 |
"""
|
| 41 |
YOLOv8 inference function
|