Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,10 +30,11 @@ def yolov9_inference(img):
|
|
| 30 |
return output_image
|
| 31 |
|
| 32 |
|
|
|
|
| 33 |
def app():
|
| 34 |
return gr.Interface(
|
| 35 |
fn=yolov9_inference,
|
| 36 |
-
inputs=
|
| 37 |
outputs="image",
|
| 38 |
title="YOLOv9 Inference",
|
| 39 |
description="Perform object detection using the YOLOv9 model.",
|
|
|
|
| 30 |
return output_image
|
| 31 |
|
| 32 |
|
| 33 |
+
|
| 34 |
def app():
|
| 35 |
return gr.Interface(
|
| 36 |
fn=yolov9_inference,
|
| 37 |
+
inputs=inputs.Image(type="file", label="Image"), # Use inputs.Image instead of gr.inputs.Image
|
| 38 |
outputs="image",
|
| 39 |
title="YOLOv9 Inference",
|
| 40 |
description="Perform object detection using the YOLOv9 model.",
|