nonzeroexit commited on
Commit
9f51e97
·
verified ·
1 Parent(s): a4da61b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -81,6 +81,7 @@ def extract_features(sequence):
81
 
82
  def predict(sequence):
83
  """Predict if the sequence is an AMP or not."""
 
84
  features = np.array(features).reshape(1, -1) # Reshape for a single sample
85
  prediction = model.predict(features)[0]
86
  probabilities = model.predict_proba(features)[0]
 
81
 
82
  def predict(sequence):
83
  """Predict if the sequence is an AMP or not."""
84
+ features = extract_features(sequence)
85
  features = np.array(features).reshape(1, -1) # Reshape for a single sample
86
  prediction = model.predict(features)[0]
87
  probabilities = model.predict_proba(features)[0]