Parthebhan commited on
Commit
7ddfbe4
·
verified ·
1 Parent(s): d2a4763

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=gr.inputs.Image(type="file", label="Image"),
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.",