Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from ultralytics import ASSETS, YOLO
|
|
6 |
from PIL import Image
|
7 |
import gradio as gr
|
8 |
|
9 |
-
model_path = '/
|
10 |
|
11 |
model = YOLO(model_path)
|
12 |
|
@@ -43,10 +43,11 @@ iface = gr.Interface(
|
|
43 |
outputs=gr.Image(type="pil", label="Result"),
|
44 |
title="Ultralytics Gradio",
|
45 |
description="Upload images for inference. The Ultralytics YOLOv8n model is used by default.",
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
50 |
)
|
51 |
|
52 |
if __name__ == "__main__":
|
|
|
6 |
from PIL import Image
|
7 |
import gradio as gr
|
8 |
|
9 |
+
model_path = '/new_data_improved_object_detector.pt'
|
10 |
|
11 |
model = YOLO(model_path)
|
12 |
|
|
|
43 |
outputs=gr.Image(type="pil", label="Result"),
|
44 |
title="Ultralytics Gradio",
|
45 |
description="Upload images for inference. The Ultralytics YOLOv8n model is used by default.",
|
46 |
+
examples = [
|
47 |
+
['1.jpg'],
|
48 |
+
['2.jpg'],
|
49 |
+
['3.jpg']
|
50 |
+
]
|
51 |
)
|
52 |
|
53 |
if __name__ == "__main__":
|