Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
# -*- coding: utf-8 -*-
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from ultralytics import YOLO
|
| 4 |
import cv2
|
|
@@ -61,10 +62,7 @@ demo = gr.Interface(
|
|
| 61 |
outputs=gr.Image(type="numpy", label="Detected Fruits"),
|
| 62 |
title=title,
|
| 63 |
description=description,
|
| 64 |
-
examples=[
|
| 65 |
-
["test_images/test_image.jpg"]
|
| 66 |
-
],
|
| 67 |
)
|
| 68 |
|
| 69 |
if __name__ == "__main__":
|
| 70 |
-
demo.launch()
|
|
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
import gradio as gr
|
| 4 |
from ultralytics import YOLO
|
| 5 |
import cv2
|
|
|
|
| 62 |
outputs=gr.Image(type="numpy", label="Detected Fruits"),
|
| 63 |
title=title,
|
| 64 |
description=description,
|
|
|
|
|
|
|
|
|
|
| 65 |
)
|
| 66 |
|
| 67 |
if __name__ == "__main__":
|
| 68 |
+
demo.launch()
|