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