vumichien commited on
Commit
c226461
1 Parent(s): c5e8e41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -37,10 +37,10 @@ def yolov8_inference(
37
  inputs = [
38
  gr.Image(type="filepath", label="Input Image"),
39
  gr.Dropdown(["yolov8n", "yolov8m", "yolov8l", "yolov8x"],
40
- default="yolov8m", label="Model"),
41
- gr.Slider(minimum=320, maximum=1280, default=640, step=320, label="Image Size"),
42
- gr.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
43
- gr.Slider(minimum=0.0, maximum=1.0, default=0.45, step=0.05, label="IOU Threshold"),
44
  ]
45
 
46
  outputs = gr.Image(type="filepath", label="Output Image")
 
37
  inputs = [
38
  gr.Image(type="filepath", label="Input Image"),
39
  gr.Dropdown(["yolov8n", "yolov8m", "yolov8l", "yolov8x"],
40
+ value="yolov8m", label="Model"),
41
+ gr.Slider(minimum=320, maximum=1280, value=640, step=320, label="Image Size"),
42
+ gr.Slider(minimum=0.0, maximum=1.0, value=0.25, step=0.05, label="Confidence Threshold"),
43
+ gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold"),
44
  ]
45
 
46
  outputs = gr.Image(type="filepath", label="Output Image")