Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,7 @@ import os
|
|
5 |
|
6 |
from ultralytics import YOLO
|
7 |
|
8 |
-
model = YOLO('
|
9 |
-
image_paths = ['pothole_example.jpg', 'pothole_screenshot.png']
|
10 |
|
11 |
def show_preds_image(image):
|
12 |
# Save the uploaded image temporarily
|
@@ -51,7 +50,7 @@ interface_image = gr.Interface(
|
|
51 |
fn=show_preds_image,
|
52 |
inputs=inputs_image,
|
53 |
outputs=outputs_image,
|
54 |
-
title="
|
55 |
examples=[],
|
56 |
cache_examples=False,
|
57 |
)
|
|
|
5 |
|
6 |
from ultralytics import YOLO
|
7 |
|
8 |
+
model = YOLO('best.pt')
|
|
|
9 |
|
10 |
def show_preds_image(image):
|
11 |
# Save the uploaded image temporarily
|
|
|
50 |
fn=show_preds_image,
|
51 |
inputs=inputs_image,
|
52 |
outputs=outputs_image,
|
53 |
+
title="European ReWilding Project - Demo[Yolov8]",
|
54 |
examples=[],
|
55 |
cache_examples=False,
|
56 |
)
|