Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,11 +6,10 @@ import gradio as gr
|
|
| 6 |
from PIL import Image
|
| 7 |
import numpy as np
|
| 8 |
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def detect_faces(image):
|
| 11 |
-
model_path = hf_hub_download(repo_id="arnabdhar/YOLOv8-Face-Detection", filename="model.pt")
|
| 12 |
-
model = YOLO(model_path)
|
| 13 |
-
|
| 14 |
output = model(image)
|
| 15 |
results = Detections.from_ultralytics(output[0])
|
| 16 |
|
|
|
|
| 6 |
from PIL import Image
|
| 7 |
import numpy as np
|
| 8 |
|
| 9 |
+
model_path = hf_hub_download(repo_id="arnabdhar/YOLOv8-Face-Detection", filename="model.pt")
|
| 10 |
+
model = YOLO(model_path)
|
| 11 |
|
| 12 |
def detect_faces(image):
|
|
|
|
|
|
|
|
|
|
| 13 |
output = model(image)
|
| 14 |
results = Detections.from_ultralytics(output[0])
|
| 15 |
|