nonzeroexit commited on
Commit
e56a376
·
verified ·
1 Parent(s): 6f19eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def extract_features(sequence):
74
  feature_array = np.array(feature_values).reshape(1, -1) # Reshape to (1, n_features) - CORRECT SHAPE
75
  print(f"Shape of feature_array before normalization: {feature_array.shape}") # Debug print
76
 
77
- normalized_features = scaler.transform(feature_array) # Normalize - NO TRANSPOSE
78
  normalized_features = normalized_features.flatten() # Flatten AFTER normalization if needed
79
 
80
 
 
74
  feature_array = np.array(feature_values).reshape(1, -1) # Reshape to (1, n_features) - CORRECT SHAPE
75
  print(f"Shape of feature_array before normalization: {feature_array.shape}") # Debug print
76
 
77
+ normalized_features = scaler.transform(feature_array.T) # Normalize - NO TRANSPOSE
78
  normalized_features = normalized_features.flatten() # Flatten AFTER normalization if needed
79
 
80