Spaces:
Sleeping
Sleeping
till-onethousand
commited on
Commit
·
e82297b
1
Parent(s):
b87462f
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict_image(img, conf_threshold, iou_threshold, model_name):
|
|
28 |
iface = gr.Interface(
|
29 |
fn=predict_image,
|
30 |
inputs=[
|
31 |
-
gr.Image(type="
|
32 |
gr.Slider(minimum=0, maximum=1, value=0.25, label="Confidence threshold"),
|
33 |
gr.Slider(minimum=0, maximum=1, value=0.45, label="IoU threshold"),
|
34 |
gr.Radio(choices=["yolo11n", "yolo11s", "yolo11n-seg", "yolo11s-seg", "yolo11n-pose", "yolo11s-pose"], label="Model Name", value="yolo11n"),
|
|
|
28 |
iface = gr.Interface(
|
29 |
fn=predict_image,
|
30 |
inputs=[
|
31 |
+
gr.Image(type="filepath", label="Upload Image"),
|
32 |
gr.Slider(minimum=0, maximum=1, value=0.25, label="Confidence threshold"),
|
33 |
gr.Slider(minimum=0, maximum=1, value=0.45, label="IoU threshold"),
|
34 |
gr.Radio(choices=["yolo11n", "yolo11s", "yolo11n-seg", "yolo11s-seg", "yolo11n-pose", "yolo11s-pose"], label="Model Name", value="yolo11n"),
|