Spaces:
Running
on
Zero
Running
on
Zero
Update model description in Gradio App
Browse files
app.py
CHANGED
@@ -68,36 +68,40 @@ demo = gr.Interface(fn=classify,
|
|
68 |
|
69 |
|
70 |
description_md = """
|
71 |
-
###
|
72 |
|
73 |
**🧬 Input Format – FASTA Sequences**
|
74 |
This tool accepts protein sequences in FASTA format
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
**💡 Accepted Proteins**
|
77 |
-
- Natural and recombinant proteins
|
78 |
-
- Pharmaceutical and industrial proteins
|
79 |
-
- Synthetic sequences (tags or mutations allowed)
|
80 |
|
81 |
🔎 **Note of Caution**:
|
82 |
While our model demonstrates promising performance—particularly with recombinant proteins, as evidenced by our additional evaluation with a recombinant protein dataset
|
83 |
-
from UniProt—**we advise caution when generalizing the results to all recombinant protein scenarios
|
84 |
-
The specificity of the model to various recombinant constructs and modifications has not been explored.
|
85 |
-
|
86 |
-
**🧠 Prediction Process**
|
87 |
-
- Embeddings via ProtT5 + ESM-2
|
88 |
-
- Deep neural network for classification
|
89 |
|
90 |
**⚠️ Disclaimer**
|
91 |
Although AllerTrans provides highly accurate predictions, it is intended as a screening tool. For clinical or regulatory decisions, always confirm results with experimental validation.
|
92 |
"""
|
93 |
-
|
94 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
gr.Markdown(description_md)
|
96 |
-
with gr.Row():
|
97 |
-
input_box = gr.Textbox(lines=3, placeholder="Enter protein sequence...")
|
98 |
-
output_label = gr.Label(label="Prediction")
|
99 |
-
classify_btn = gr.Button("Run Prediction")
|
100 |
-
classify_btn.click(classify, inputs=input_box, outputs=output_label)
|
101 |
|
102 |
if __name__ == "__main__":
|
103 |
demo.launch()
|
|
|
68 |
|
69 |
|
70 |
description_md = """
|
71 |
+
### 📌 **About AllerTrans – An Allergenicity Prediction Tool for Protein Sequences**
|
72 |
|
73 |
**🧬 Input Format – FASTA Sequences**
|
74 |
This tool accepts protein sequences in FASTA format
|
75 |
|
76 |
+
**🧾 Output Explanation**
|
77 |
+
|
78 |
+
AllerTrans classifies your input sequence into one of the following categories:
|
79 |
+
|
80 |
+
🟢 Non-Allergen:
|
81 |
+
The protein is unlikely to cause an allergic reaction and can be considered safe in terms of allergenicity.
|
82 |
+
|
83 |
+
🔴 Potential Allergen:
|
84 |
+
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.
|
85 |
+
|
86 |
**💡 Accepted Proteins**
|
87 |
+
- Natural and also recombinant proteins
|
|
|
|
|
88 |
|
89 |
🔎 **Note of Caution**:
|
90 |
While our model demonstrates promising performance—particularly with recombinant proteins, as evidenced by our additional evaluation with a recombinant protein dataset
|
91 |
+
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.
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
**⚠️ Disclaimer**
|
94 |
Although AllerTrans provides highly accurate predictions, it is intended as a screening tool. For clinical or regulatory decisions, always confirm results with experimental validation.
|
95 |
"""
|
96 |
+
|
97 |
with gr.Blocks() as demo:
|
98 |
+
interface = gr.Interface(
|
99 |
+
fn=classify,
|
100 |
+
inputs=gr.Textbox(lines=3, placeholder="Enter protein sequence..."),
|
101 |
+
outputs=gr.Label(label="Prediction"),
|
102 |
+
)
|
103 |
+
interface.render()
|
104 |
gr.Markdown(description_md)
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
if __name__ == "__main__":
|
107 |
demo.launch()
|