Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -240,8 +240,8 @@ def analyze_face(input_data):
|
|
240 |
0].landmark # Fixed: Use integer index
|
241 |
features = extract_features(frame_rgb, landmarks)
|
242 |
|
243 |
-
# Convert features to pandas DataFrame with correct column names
|
244 |
-
features_df = pd.DataFrame([features], columns=["%Red
|
245 |
|
246 |
test_values = {}
|
247 |
r2_scores = {}
|
|
|
240 |
0].landmark # Fixed: Use integer index
|
241 |
features = extract_features(frame_rgb, landmarks)
|
242 |
|
243 |
+
# Convert features to pandas DataFrame with correct column names (matching the training phase)
|
244 |
+
features_df = pd.DataFrame([features], columns=["%Red pixel", "%Green pixel", "%Blue pixel"])
|
245 |
|
246 |
test_values = {}
|
247 |
r2_scores = {}
|