kedimestan
commited on
Commit
•
1f34547
1
Parent(s):
f043864
Update app.py
Browse files
app.py
CHANGED
@@ -4,18 +4,6 @@ import torch
|
|
4 |
from ultralyticsplus import YOLO
|
5 |
|
6 |
# Download images
|
7 |
-
sahi.utils.file.download_from_url(
|
8 |
-
"https://raw.githubusercontent.com/kadirnar/dethub/main/data/images/highway.jpg",
|
9 |
-
"highway.jpg",
|
10 |
-
)
|
11 |
-
sahi.utils.file.download_from_url(
|
12 |
-
"https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg",
|
13 |
-
"small-vehicles1.jpeg",
|
14 |
-
)
|
15 |
-
sahi.utils.file.download_from_url(
|
16 |
-
"https://raw.githubusercontent.com/ultralytics/yolov5/master/data/images/zidane.jpg",
|
17 |
-
"zidane.jpg",
|
18 |
-
)
|
19 |
|
20 |
model_names = [
|
21 |
"yolov8n-seg.pt",
|
@@ -91,8 +79,6 @@ demo_app = gr.Interface(
|
|
91 |
inputs=inputs,
|
92 |
outputs=outputs,
|
93 |
title=title,
|
94 |
-
|
95 |
-
cache_examples=True,
|
96 |
-
theme="default",
|
97 |
)
|
98 |
demo_app.queue().launch(debug=True)
|
|
|
4 |
from ultralyticsplus import YOLO
|
5 |
|
6 |
# Download images
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
model_names = [
|
9 |
"yolov8n-seg.pt",
|
|
|
79 |
inputs=inputs,
|
80 |
outputs=outputs,
|
81 |
title=title,
|
82 |
+
theme="default"
|
|
|
|
|
83 |
)
|
84 |
demo_app.queue().launch(debug=True)
|