linhcuem commited on
Commit
dd17001
1 Parent(s): e8d4f9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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.inputs.Image(type="pil"),
113
- gr.inputs.Dropdown(["linhcuem/linhcuem/cham_diem_yolov8"],
114
  default="linhcuem/cham_diem_yolov8", label="Model"),
115
- gr.inputs.Slider(minimum=320, maximum=1280, default=640, step=32, label="Image Size"),
116
- gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, step=0.05, label="Confidence Threshold"),
117
- gr.inputs.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")
 
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")