Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ from yolov5.models.experimental import attempt_load
|
|
| 18 |
from yolov5.utils.general import non_max_suppression
|
| 19 |
from yolov5.utils.augmentations import letterbox
|
| 20 |
|
| 21 |
-
|
| 22 |
# Example URLs for downloading images
|
| 23 |
file_urls = [
|
| 24 |
"https://www.dropbox.com/scl/fi/n3bs5xnl2kanqmwv483k3/1_jpg.rf.4a59a63d0a7339d280dd18ef3c2e675a.jpg?rlkey=4n9dnls1byb4wm54ycxzx3ovi&st=ue5xv8yx&dl=0",
|
|
@@ -40,7 +40,7 @@ def download_file(url, save_name):
|
|
| 40 |
# Download images
|
| 41 |
for i, url in enumerate(file_urls):
|
| 42 |
download_file(url, f"image_{i}.jpg")
|
| 43 |
-
|
| 44 |
|
| 45 |
# Load YOLOv5 model (placeholder)
|
| 46 |
model_path = "best.pt" # Path to your YOLOv5 model
|
|
|
|
| 18 |
from yolov5.utils.general import non_max_suppression
|
| 19 |
from yolov5.utils.augmentations import letterbox
|
| 20 |
|
| 21 |
+
|
| 22 |
# Example URLs for downloading images
|
| 23 |
file_urls = [
|
| 24 |
"https://www.dropbox.com/scl/fi/n3bs5xnl2kanqmwv483k3/1_jpg.rf.4a59a63d0a7339d280dd18ef3c2e675a.jpg?rlkey=4n9dnls1byb4wm54ycxzx3ovi&st=ue5xv8yx&dl=0",
|
|
|
|
| 40 |
# Download images
|
| 41 |
for i, url in enumerate(file_urls):
|
| 42 |
download_file(url, f"image_{i}.jpg")
|
| 43 |
+
|
| 44 |
|
| 45 |
# Load YOLOv5 model (placeholder)
|
| 46 |
model_path = "best.pt" # Path to your YOLOv5 model
|