Spaces:
Runtime error
Runtime error
Commit
•
4506fce
1
Parent(s):
07de9bd
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import os
|
2 |
-
|
3 |
-
import
|
|
|
4 |
import tensorflow as tf
|
|
|
|
|
5 |
|
6 |
N_ROWS = 543
|
7 |
N_DIMS = 3
|
@@ -192,10 +195,7 @@ def make_prediction(processed_landmarks):
|
|
192 |
# ...
|
193 |
|
194 |
with mp_holistic.Holistic(min_detection_confidence=0.5, min_tracking_confidence=0.5) as holistic:
|
195 |
-
|
196 |
-
import numpy as np
|
197 |
-
import gradio as gr
|
198 |
-
import tensorflow as tf
|
199 |
|
200 |
|
201 |
# ... (Previous code remains the same)
|
|
|
1 |
import os
|
2 |
+
import cv2
|
3 |
+
import numpy as np
|
4 |
+
import gradio as gr
|
5 |
import tensorflow as tf
|
6 |
+
import mediapipe as mp
|
7 |
+
|
8 |
|
9 |
N_ROWS = 543
|
10 |
N_DIMS = 3
|
|
|
195 |
# ...
|
196 |
|
197 |
with mp_holistic.Holistic(min_detection_confidence=0.5, min_tracking_confidence=0.5) as holistic:
|
198 |
+
|
|
|
|
|
|
|
199 |
|
200 |
|
201 |
# ... (Previous code remains the same)
|