Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def yolov9_inference(img_path, model_path,image_size, conf_threshold, iou_thresh
|
|
35 |
print("img_path:",img_path)
|
36 |
|
37 |
new_image_path = os.path.basename(img_path)
|
38 |
-
output_path = save_path +
|
39 |
|
40 |
print(f"Output image saved to {output_path}")
|
41 |
|
@@ -59,7 +59,7 @@ inputs = [
|
|
59 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold"),
|
60 |
]
|
61 |
|
62 |
-
outputs = gr.Image(label="Output Image")
|
63 |
title = "YOLOv9"
|
64 |
|
65 |
demo_app = gr.Interface(
|
|
|
35 |
print("img_path:",img_path)
|
36 |
|
37 |
new_image_path = os.path.basename(img_path)
|
38 |
+
output_path = save_path + img_path
|
39 |
|
40 |
print(f"Output image saved to {output_path}")
|
41 |
|
|
|
59 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold"),
|
60 |
]
|
61 |
|
62 |
+
outputs = gr.Image(type="filepath",label="Output Image")
|
63 |
title = "YOLOv9"
|
64 |
|
65 |
demo_app = gr.Interface(
|