Spaces:
Build error
Build error
Commit ·
c4f15fb
1
Parent(s): 6f3703b
computer vision 1
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import os
|
|
| 6 |
from ultralytics import YOLO
|
| 7 |
|
| 8 |
file_urls = [
|
| 9 |
-
'https://
|
| 10 |
'https://www.dropbox.com/s/7sjfwncffg8xej2/video_7.mp4?dl=1'
|
| 11 |
]
|
| 12 |
|
|
@@ -25,11 +25,11 @@ for i, url in enumerate(file_urls):
|
|
| 25 |
else:
|
| 26 |
download_file(
|
| 27 |
file_urls[i],
|
| 28 |
-
f"image_{i}.
|
| 29 |
)
|
| 30 |
|
| 31 |
|
| 32 |
-
path = [['image_0.
|
| 33 |
|
| 34 |
|
| 35 |
def show_preds_image(image_path):
|
|
|
|
| 6 |
from ultralytics import YOLO
|
| 7 |
|
| 8 |
file_urls = [
|
| 9 |
+
'https://github.com/pirahansiah/farshid/blob/eda35793771c298696dba7eadc0fbc74931ef8fd/OpenCV_book/5/AIoT.png',
|
| 10 |
'https://www.dropbox.com/s/7sjfwncffg8xej2/video_7.mp4?dl=1'
|
| 11 |
]
|
| 12 |
|
|
|
|
| 25 |
else:
|
| 26 |
download_file(
|
| 27 |
file_urls[i],
|
| 28 |
+
f"image_{i}.png"
|
| 29 |
)
|
| 30 |
|
| 31 |
|
| 32 |
+
path = [['image_0.png']]
|
| 33 |
|
| 34 |
|
| 35 |
def show_preds_image(image_path):
|