DawnC commited on
Commit
3c27777
1 Parent(s): 55414fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- # 下載YOLOv5預訓練模型
16
- model_yolo = YOLO('yolov8n.pt') # 使用 YOLOv5 預訓練模型
 
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",