Spaces:
Runtime error
Runtime error
Commit
·
e26c56b
1
Parent(s):
19b6a2d
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from ultralyticsplus import YOLO
|
|
6 |
|
7 |
# Images
|
8 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/kadirnar/dethub/main/data/images/highway.jpg', 'highway.jpg')
|
9 |
-
torch.hub.download_url_to_file('https://
|
10 |
-
torch.hub.download_url_to_file('https://raw.githubusercontent.com/
|
11 |
|
12 |
def yolov8_inference(
|
13 |
image: gr.inputs.Image = None,
|
@@ -71,7 +71,7 @@ inputs = [
|
|
71 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
72 |
title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
|
73 |
|
74 |
-
examples = [['highway.jpg', 'kadirnar/yolov8m-v8.0', 640, 0.25, 0.45], ['
|
75 |
demo_app = gr.Interface(
|
76 |
fn=yolov8_inference,
|
77 |
inputs=inputs,
|
|
|
6 |
|
7 |
# Images
|
8 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/kadirnar/dethub/main/data/images/highway.jpg', 'highway.jpg')
|
9 |
+
torch.hub.download_url_to_file('https://raw.githubusercontent.com/Owaiskhan9654/tests/main/test_sample_images/favicon.jpg', 'favicon.jpg')
|
10 |
+
torch.hub.download_url_to_file('https://raw.githubusercontent.com/Owaiskhan9654/tests/main/test_sample_images/Taj_Mahal.jpg', 'Taj_Mahal.jpg')
|
11 |
|
12 |
def yolov8_inference(
|
13 |
image: gr.inputs.Image = None,
|
|
|
71 |
outputs = gr.outputs.Image(type="filepath", label="Output Image")
|
72 |
title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
|
73 |
|
74 |
+
examples = [['highway.jpg', 'kadirnar/yolov8m-v8.0', 640, 0.25, 0.45], ['Taj_Mahal.jpg', 'kadirnar/yolov8l-v8.0', 640, 0.25, 0.45], ['favicon.jpg', 'kadirnar/yolov8x-v8.0', 1280, 0.25, 0.45]]
|
75 |
demo_app = gr.Interface(
|
76 |
fn=yolov8_inference,
|
77 |
inputs=inputs,
|