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