Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import cv2
|
| 3 |
import mediapipe as mp
|
| 4 |
-
from mediapipe.python.solutions import face_detection as mp_face_detection
|
| 5 |
import numpy as np
|
| 6 |
import time
|
| 7 |
|
| 8 |
-
#
|
|
|
|
| 9 |
face_detection = mp_face_detection.FaceDetection(model_selection=0, min_detection_confidence=0.5)
|
| 10 |
|
| 11 |
# Path ke aset multimedia (Pastikan Anda sudah upload file dengan nama ini)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import cv2
|
| 3 |
import mediapipe as mp
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
import time
|
| 6 |
|
| 7 |
+
# Cara pemanggilan yang lebih standar
|
| 8 |
+
mp_face_detection = mp.solutions.face_detection
|
| 9 |
face_detection = mp_face_detection.FaceDetection(model_selection=0, min_detection_confidence=0.5)
|
| 10 |
|
| 11 |
# Path ke aset multimedia (Pastikan Anda sudah upload file dengan nama ini)
|