Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def read_dna_sequence(dna_text, fasta_file):
|
|
64 |
dna_sequence = dna_sequence.upper()
|
65 |
warning += "\n⚠️ Note: DNA sequence was converted to uppercase (lowercase nucleotides are not supported)."
|
66 |
|
67 |
-
if error
|
68 |
# If there was an error before, no need to check the content of the sequence. Otherwise, check that only ACGTN are used
|
69 |
for nucleotide in dna_sequence:
|
70 |
if nucleotide not in ["A", "C", "G", "T", "N"]:
|
@@ -217,6 +217,8 @@ You can either paste a sequence or upload a FASTA file.
|
|
217 |
### Limitations and Disclaimer
|
218 |
ChatNT can only handle questions related to the 27 tasks it has been trained on, including the same format of DNA sequences. ChatNT is not a clinical or diagnostic tool. It can produce incorrect or “hallucinated” answers, particularly on out‑of‑distribution inputs, and its numeric predictions may suffer digit‑level errors. Confidence estimates require post‑hoc calibration. Users should always validate critical outputs against experiments or specialized bioinformatics pipelines.
|
219 |
|
|
|
|
|
220 |
### How to query the model ?
|
221 |
ChatNT works like an advanced assistant for analyzing DNA sequences — but it has some important rules.
|
222 |
|
@@ -234,6 +236,9 @@ Examples of bad queries:
|
|
234 |
- "Replace the all 'A' nucleotides by 'G' in this sequence `<DNA>`".
|
235 |
|
236 |
For more examples, you can refer to the [training dataset](https://huggingface.co/datasets/InstaDeepAI/ChatNT_training_data).
|
|
|
|
|
|
|
237 |
"""
|
238 |
)
|
239 |
with gr.Column(scale=1):
|
|
|
64 |
dna_sequence = dna_sequence.upper()
|
65 |
warning += "\n⚠️ Note: DNA sequence was converted to uppercase (lowercase nucleotides are not supported)."
|
66 |
|
67 |
+
if error == "":
|
68 |
# If there was an error before, no need to check the content of the sequence. Otherwise, check that only ACGTN are used
|
69 |
for nucleotide in dna_sequence:
|
70 |
if nucleotide not in ["A", "C", "G", "T", "N"]:
|
|
|
217 |
### Limitations and Disclaimer
|
218 |
ChatNT can only handle questions related to the 27 tasks it has been trained on, including the same format of DNA sequences. ChatNT is not a clinical or diagnostic tool. It can produce incorrect or “hallucinated” answers, particularly on out‑of‑distribution inputs, and its numeric predictions may suffer digit‑level errors. Confidence estimates require post‑hoc calibration. Users should always validate critical outputs against experiments or specialized bioinformatics pipelines.
|
219 |
|
220 |
+
---
|
221 |
+
|
222 |
### How to query the model ?
|
223 |
ChatNT works like an advanced assistant for analyzing DNA sequences — but it has some important rules.
|
224 |
|
|
|
236 |
- "Replace the all 'A' nucleotides by 'G' in this sequence `<DNA>`".
|
237 |
|
238 |
For more examples, you can refer to the [training dataset](https://huggingface.co/datasets/InstaDeepAI/ChatNT_training_data).
|
239 |
+
|
240 |
+
---
|
241 |
+
|
242 |
"""
|
243 |
)
|
244 |
with gr.Column(scale=1):
|