Spaces:
Build error
Build error
Nguyen Thai Thao Uyen
commited on
Commit
·
2e4037e
1
Parent(s):
9170af9
Add application file
Browse files
app.py
CHANGED
@@ -11,6 +11,10 @@ torch.hub.download_url_to_file(
|
|
11 |
torch.hub.download_url_to_file(
|
12 |
'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ioQgA.854d7s/v1/-1x-1.jpg',
|
13 |
'three.jpg')
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
def yoloV8_func(image: gr.Image = None,
|
@@ -59,7 +63,8 @@ title = "YOLOv8 Custom Object Detection by Uyen Nguyen"
|
|
59 |
|
60 |
examples = [['one.jpg', 900, 0.5, 0.8],
|
61 |
['two.jpg', 1152, 0.05, 0.05],
|
62 |
-
['three.jpg', 1024, 0.25, 0.25]
|
|
|
63 |
|
64 |
yolo_app = gr.Interface(
|
65 |
fn=yoloV8_func,
|
|
|
11 |
torch.hub.download_url_to_file(
|
12 |
'https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ioQgA.854d7s/v1/-1x-1.jpg',
|
13 |
'three.jpg')
|
14 |
+
torch.hub.download_url_to_file(
|
15 |
+
'https://cdn.apartmenttherapy.info/image/upload/f_jpg,q_auto:eco,c_fill,g_auto,w_1500,ar_1:1/at%2Fhouse%20tours%2Farchive%2FTour%20a%20Colorful%20Home%20in%20Montreal%2Ffada199d36b084830ef3563b555887f31851ca55',
|
16 |
+
'four.jpg')
|
17 |
+
|
18 |
|
19 |
|
20 |
def yoloV8_func(image: gr.Image = None,
|
|
|
63 |
|
64 |
examples = [['one.jpg', 900, 0.5, 0.8],
|
65 |
['two.jpg', 1152, 0.05, 0.05],
|
66 |
+
['three.jpg', 1024, 0.25, 0.25],
|
67 |
+
['four.jpg', 832, 0.3, 0.3]]
|
68 |
|
69 |
yolo_app = gr.Interface(
|
70 |
fn=yoloV8_func,
|