nonzeroexit commited on
Commit
a127c0b
·
verified ·
1 Parent(s): 90db948

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def extract_features(sequence):
14
  aac = np.array(list(AAComposition.CalculateAADipeptideComposition(sequence)))
15
 
16
  # Normalize using the pre-trained scaler (Ensure the scaler is loaded correctly)
17
- normalized_features = scaler.transform([aac]) # Don't use fit_transform(), only transform()
18
 
19
  return normalized_features
20
 
 
14
  aac = np.array(list(AAComposition.CalculateAADipeptideComposition(sequence)))
15
 
16
  # Normalize using the pre-trained scaler (Ensure the scaler is loaded correctly)
17
+ normalized_features = scaler.fit_transform([aac]) # Don't use fit_transform(), only transform()
18
 
19
  return normalized_features
20