Spaces:
Runtime error
Runtime error
Commit
·
b638444
1
Parent(s):
271251d
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ def yolov8_inference(
|
|
27 |
model.overrides['conf'] = conf_threshold
|
28 |
model.overrides['iou']= iou_threshold
|
29 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
30 |
-
# Correct line of code
|
31 |
model.overrides['max_det'] = 999
|
32 |
image = read_image(image)
|
33 |
results = model.predict(image)
|
@@ -38,7 +37,7 @@ def yolov8_inference(
|
|
38 |
|
39 |
inputs = [
|
40 |
# Images
|
41 |
-
gr.Examples(['samples/1.jpeg', 'samples/2.JPG'],),
|
42 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
43 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
44 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
|
|
|
27 |
model.overrides['conf'] = conf_threshold
|
28 |
model.overrides['iou']= iou_threshold
|
29 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
|
|
30 |
model.overrides['max_det'] = 999
|
31 |
image = read_image(image)
|
32 |
results = model.predict(image)
|
|
|
37 |
|
38 |
inputs = [
|
39 |
# Images
|
40 |
+
gr.Examples(['samples/1.jpeg', 'samples/2.JPG'], inputs=None),
|
41 |
gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
|
42 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
|
43 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
|