Spaces:
Sleeping
Sleeping
nn commited on
Upload app.py
Browse files
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
|
| 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="
|
| 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 |
)
|