nn commited on
Commit
8425794
·
verified ·
1 Parent(s): a681beb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ def run_detection(image):
39
  # Add logo to the output image
40
  output_with_logo = add_logo(Image.open(output_image))
41
 
42
- return output_with_logo
43
 
44
  def main():
45
  input_image = gr.Image(type="pil", label="Upload an image")
@@ -49,7 +49,7 @@ def main():
49
  fn=run_detection,
50
  inputs=input_image,
51
  outputs=output_image,
52
- title="YOLO9tr Object Detection",
53
  description="Upload an image to perform object detection using YOLO9tr.",
54
  examples=[["United_States_000502.jpg"]]
55
  )
 
39
  # Add logo to the output image
40
  output_with_logo = add_logo(Image.open(output_image))
41
 
42
+ return output_image
43
 
44
  def main():
45
  input_image = gr.Image(type="pil", label="Upload an image")
 
49
  fn=run_detection,
50
  inputs=input_image,
51
  outputs=output_image,
52
+ title="Pavement Damage Detection: YOLO9tr (Youwai et al. 2024)",
53
  description="Upload an image to perform object detection using YOLO9tr.",
54
  examples=[["United_States_000502.jpg"]]
55
  )