Spaces:
Sleeping
Sleeping
Rivalcoder
commited on
Commit
·
c3d8263
1
Parent(s):
434a4e4
New Try
Browse files
app.py
CHANGED
|
@@ -152,7 +152,7 @@ def process_video(video_path: str) -> Dict[str, Any]:
|
|
| 152 |
|
| 153 |
# Paths - adjust these paths according to your Hugging Face Space
|
| 154 |
face_cascade_path = cv2.data.haarcascades + 'haarcascade_frontalface_default.xml'
|
| 155 |
-
emotion_model_path = "
|
| 156 |
|
| 157 |
# Check if models exist
|
| 158 |
if not os.path.exists(face_cascade_path):
|
|
|
|
| 152 |
|
| 153 |
# Paths - adjust these paths according to your Hugging Face Space
|
| 154 |
face_cascade_path = cv2.data.haarcascades + 'haarcascade_frontalface_default.xml'
|
| 155 |
+
emotion_model_path = "best_emotion_model.pth" # Path in Hugging Face Space
|
| 156 |
|
| 157 |
# Check if models exist
|
| 158 |
if not os.path.exists(face_cascade_path):
|