Update app.py
Browse files
app.py
CHANGED
@@ -247,6 +247,8 @@ def inference(img):
|
|
247 |
|
248 |
image = Image.fromarray(image)
|
249 |
return image
|
250 |
-
|
251 |
-
|
|
|
|
|
252 |
|
|
|
247 |
|
248 |
image = Image.fromarray(image)
|
249 |
return image
|
250 |
+
|
251 |
+
title="YOLOv4"
|
252 |
+
description="YOLOv4 optimizes the speed and accuracy of object detection. It is two times faster than EfficientDet. It improves YOLOv3's AP and FPS by 10% and 12%, respectively, with mAP50 of 52.32 on the COCO 2017 dataset and FPS of 41.7 on Tesla 100."
|
253 |
+
gr.Interface(inference,gr.inputs.Image(type="filepath"),gr.outputs.Image(type="pil"),title=title,description=description).launch()
|
254 |
|