Rammohan0504 commited on
Commit
c70bbd2
·
verified ·
1 Parent(s): 99ab13b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 Pixel", "%Green Pixel", "%Blue Pixel"])
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 = {}