Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,7 @@ def yolo(im, size=640):
|
|
15 |
inputs = gr.inputs.Image(type='pil', label="Original Image")
|
16 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
17 |
title = "Custom YOLOv5"
|
18 |
-
description = "
|
19 |
-
article = "<p style='text-align: center'>YOLOv3 is a family of compound-scaled object detection models trained on the COCO dataset, and includes simple functionality for Test Time Augmentation (TTA), model ensembling, hyperparameter evolution, and export to ONNX, CoreML and TFLite. <a href='https://github.com/ultralytics/yolov3' target='_blank'>Source code</a> |<a href='https://apps.apple.com/app/id1452689527' target='_blank'>iOS App</a></p>"
|
20 |
examples = [['soccer.jpg'], ['bus.jpg']]
|
21 |
gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(
|
22 |
debug=True)
|
|
|
15 |
inputs = gr.inputs.Image(type='pil', label="Original Image")
|
16 |
outputs = gr.outputs.Image(type="pil", label="Output Image")
|
17 |
title = "Custom YOLOv5"
|
18 |
+
description = "Custom YOLOv5 Gradio demo for object detection. Upload an image or click an example image to use."
|
|
|
19 |
examples = [['soccer.jpg'], ['bus.jpg']]
|
20 |
gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article, examples=examples, theme="huggingface").launch(
|
21 |
debug=True)
|