Yanisadel commited on
Commit
6c5737b
Β·
verified Β·
1 Parent(s): 8bf3bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -12
app.py CHANGED
@@ -124,18 +124,19 @@ css = """
124
  footer { display: none !important; }
125
  """
126
 
127
- example_dna = "ATGCATGCATGCATGC"
128
  example_question = "Does this sequence <DNA> contain a donor splice site?"
129
 
130
  with gr.Blocks(css=css) as demo:
131
- gr.Markdown("# 🧬 ChatNT: A Multimodal Conversational Agent for DNA, RNA and Protein Tasks")
132
  gr.Markdown(
133
- "[ChatNT]{https://www.nature.com/articles/s42256-025-01047-1} is the first multimodal conversational agent designed with a deep understanding of biological sequences (DNA, RNA, proteins). It enables users β€” even those with no coding background β€” to interact with biological data through natural language and it generalizes across multiple biological tasks and modalities.\n"
134
- "This Hugging Face Space is powered by a [ZeroGPU](https://huggingface.co/docs/hub/en/spaces-zerogpu), which is free but **limited to 5 minutes per day per user**.\n"
 
 
 
 
135
  )
136
 
137
- gr.Image("https://media.springernature.com/w440/springer-static/cover-hires/journal/42256/7/6")
138
-
139
  with gr.Row():
140
  with gr.Column(scale=1):
141
  dna_text = gr.Textbox(
@@ -180,9 +181,12 @@ with gr.Blocks(css=css) as demo:
180
  outputs=[dna_text, fasta_file, custom_question]
181
  )
182
 
183
- gr.Markdown(
184
- """
185
- You must use **exactly one `<DNA>` token** if you want the model to see your sequence. It is also possible to use the model without any DNA sequence (in this case, the `<DNA>` token must not be present in the question).
 
 
 
186
  You can either paste a sequence or upload a FASTA file.
187
 
188
  ---
@@ -195,9 +199,11 @@ You can either paste a sequence or upload a FASTA file.
195
  ### ❌ What will not work properly
196
  - "What is the length of this sequence `<DNA>`?"
197
 
198
- For more examples, you can refer to the [training dataset]{https://huggingface.co/datasets/InstaDeepAI/ChatNT_training_data}.
199
- """
200
- )
 
 
201
 
202
  gr.Markdown("""
203
  ### πŸ“š Citation
 
124
  footer { display: none !important; }
125
  """
126
 
127
+ example_dna = "TCTCAGGCCCACACTCCCCCGGGGAGGACCGGTTTGAAGCGCAGCCTCCTACGACTCGATGCGCAAATACTGTACTCGGAGTCCCCGGGGATGACACGTCACGGTCCAGTCAAGGCCGGTAGGTGACATGTTCGTCTCCCGAGCCGGACATGCGGATTAACGTTTCATAGTTCCCGAACTTCCCTTGAGGCGGTAATCCCCAATCGTGAAGAGGGTCTCACCCGTCGCTTGCTTACTTTGCACGTACCTGTACGAGCGTGAATGGGACTACAGCCCGTGTTGACGGCTTACTGGATCCCTTGTAATTAATCGTCGAGAGATGAGCGATGCAATGCGGCCAGACATGACTACAATTCTGTTGTAGACTCTGTGCTAAGGCCATCTTTCTAGATGAACCAGCATGGTTGAGATTCGCCCGGCTTAGCGAGGTACTGGCATGCACGCGGCCCACATACCGGCCATTGGGGGAAAATTTTATTAAACTCTCAAGGTCGGAATTCTGTCTATCAGAC"
128
  example_question = "Does this sequence <DNA> contain a donor splice site?"
129
 
130
  with gr.Blocks(css=css) as demo:
 
131
  gr.Markdown(
132
+ """
133
+ # 🧬 ChatNT: A Multimodal Conversational Agent for DNA, RNA and Protein Tasks
134
+ [ChatNT](https://www.nature.com/articles/s42256-025-01047-1) is the first multimodal conversational agent designed with a deep understanding of biological sequences (DNA, RNA, proteins). It enables users β€” even those with no coding background β€” to interact with biological data through natural language and it generalizes across multiple biological tasks and modalities
135
+
136
+ This Hugging Face Space is powered by a [ZeroGPU](https://huggingface.co/docs/hub/en/spaces-zerogpu), which is free but **limited to 5 minutes per day per user**.
137
+ """
138
  )
139
 
 
 
140
  with gr.Row():
141
  with gr.Column(scale=1):
142
  dna_text = gr.Textbox(
 
181
  outputs=[dna_text, fasta_file, custom_question]
182
  )
183
 
184
+ with gr.Row():
185
+ with gr.Column(scale=3):
186
+ gr.Markdown(
187
+ """
188
+ You must use **exactly one `<DNA>` token** if you want the model to see your sequence.
189
+ It is also possible to use the model without any DNA sequence (in this case, the `<DNA>` token must not be present in the question).
190
  You can either paste a sequence or upload a FASTA file.
191
 
192
  ---
 
199
  ### ❌ What will not work properly
200
  - "What is the length of this sequence `<DNA>`?"
201
 
202
+ For more examples, you can refer to the [training dataset](https://huggingface.co/datasets/InstaDeepAI/ChatNT_training_data).
203
+ """
204
+ )
205
+ with gr.Column(scale=1):
206
+ gr.Image("https://media.springernature.com/w440/springer-static/cover-hires/journal/42256/7/6")
207
 
208
  gr.Markdown("""
209
  ### πŸ“š Citation