Spaces:
Running
Running
Update app.py
Browse files
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 |
|