Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,11 @@ from data_manager import get_dog_description
|
|
| 11 |
from urllib.parse import quote
|
| 12 |
os.system('pip install ultralytics')
|
| 13 |
from ultralytics import YOLO
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
dog_breeds = ["Afghan_Hound", "African_Hunting_Dog", "Airedale", "American_Staffordshire_Terrier",
|
|
|
|
| 11 |
from urllib.parse import quote
|
| 12 |
os.system('pip install ultralytics')
|
| 13 |
from ultralytics import YOLO
|
| 14 |
+
from PIL import ImageDraw
|
| 15 |
|
| 16 |
+
|
| 17 |
+
# 下載YOLOv8預訓練模型
|
| 18 |
+
model_yolo = YOLO('yolov8n.pt') # 使用 YOLOv8 預訓練模型
|
| 19 |
|
| 20 |
|
| 21 |
dog_breeds = ["Afghan_Hound", "African_Hunting_Dog", "Airedale", "American_Staffordshire_Terrier",
|