sfaezella commited on
Commit
77dcc93
·
verified ·
1 Parent(s): 945be51

Add Model Descriptions again

Browse files
Files changed (1) hide show
  1. app.py +28 -1
app.py CHANGED
@@ -57,10 +57,37 @@ def classify(sequence):
57
  pred = predict_ensemble(protT5_emb, concat, model_protT5, model_cat)
58
  return "Potential Allergen" if pred.item() == 1 else "Non-Allergen"
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  demo = gr.Interface(fn=classify,
62
  inputs=gr.Textbox(lines=3, placeholder="Enter protein sequence..."),
63
- outputs=gr.Label(label="Prediction"))
 
64
 
65
  if __name__ == "__main__":
66
  demo.launch()
 
57
  pred = predict_ensemble(protT5_emb, concat, model_protT5, model_cat)
58
  return "Potential Allergen" if pred.item() == 1 else "Non-Allergen"
59
 
60
+ description_md = """
61
+ ### 📌 **About AllerTrans – An Allergenicity Prediction Tool for Protein Sequences**
62
+
63
+ **🧬 Input Format – FASTA Sequences**
64
+ This tool accepts protein sequences in FASTA format
65
+
66
+ **🧾 Output Explanation**
67
+
68
+ AllerTrans classifies your input sequence into one of the following categories:
69
+
70
+ 🟢 Non-Allergen:
71
+ The protein is unlikely to cause an allergic reaction and can be considered safe in terms of allergenicity.
72
+
73
+ 🔴 Potential Allergen:
74
+ The protein has the potential to trigger an allergic response or exhibit cross-reactivity in certain individuals. While not all individuals may experience reactions, these proteins cannot be considered safe.
75
+
76
+ **💡 Accepted Proteins**
77
+ - Natural and also recombinant proteins
78
+
79
+ 🔎 **Note of Caution**:
80
+ While our model demonstrates promising performance—particularly with recombinant proteins, as evidenced by our additional evaluation with a recombinant protein dataset
81
+ from UniProt—**we advise caution when generalizing the results to all constructs and modifications of recombinant protein**. The generizability of the model to various recombinant scenarios has not been fully explored.
82
+
83
+ **⚠️ Disclaimer**
84
+ Although AllerTrans provides highly accurate predictions, it is intended as a screening tool. For clinical or regulatory decisions, always confirm results with experimental validation.
85
+ """
86
 
87
  demo = gr.Interface(fn=classify,
88
  inputs=gr.Textbox(lines=3, placeholder="Enter protein sequence..."),
89
+ outputs=gr.Label(label="Prediction"),
90
+ description=description_md))
91
 
92
  if __name__ == "__main__":
93
  demo.launch()