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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def extract_features(sequence):
81
 
82
  def predict(sequence):
83
  """Predict if the sequence is an AMP or not."""
84
- features = extract_features(sequence)
85
  prediction = model.predict(features)[0]
86
  probabilities = model.predict_proba(features)[0]
87
 
 
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]
87