nonzeroexit commited on
Commit
8239095
·
verified ·
1 Parent(s): bc0eb4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def predict(sequence):
68
  """Predict AMP vs Non-AMP"""
69
  features = extract_features(sequence)
70
  prediction = model.predict(features.T)[0]
71
- return "AMP" if prediction == 0 else "Non-AMP"
72
 
73
  # Create Gradio interface
74
  iface = gr.Interface(
 
68
  """Predict AMP vs Non-AMP"""
69
  features = extract_features(sequence)
70
  prediction = model.predict(features.T)[0]
71
+ return "Potential Bioactive Peptide with Antimicrobial Properties (P-AMP)" if prediction == 0 else "Likely Non-Antimicrobial Peptide"
72
 
73
  # Create Gradio interface
74
  iface = gr.Interface(