Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import numpy as np
|
|
5 |
from PIL import Image
|
6 |
|
7 |
# Load model YOLOv5 yang telah kamu latih
|
8 |
-
model = torch.hub.load('ultralytics/
|
9 |
|
10 |
# Fungsi deteksi wajah
|
11 |
def detect_face(image):
|
|
|
5 |
from PIL import Image
|
6 |
|
7 |
# Load model YOLOv5 yang telah kamu latih
|
8 |
+
model = torch.hub.load('ultralytics/yolov8', 'custom', path='my_model.pt', force_reload=True)
|
9 |
|
10 |
# Fungsi deteksi wajah
|
11 |
def detect_face(image):
|