tracywong117 commited on
Commit
467dae3
·
1 Parent(s): 6da9ff0

update h5 example file

Browse files
app.py CHANGED
@@ -6,10 +6,8 @@ import subprocess
6
 
7
 
8
  def get_sequence_example(example):
9
- if example.startswith("H5-20"):
10
- return open("tipars/ref-tree/Influenza-A-H5/H5-20-tests.fas").read()
11
- elif example.startswith("H5-67"):
12
- return open("tipars/ref-tree/Influenza-A-H5/H5-67-tests.fasta").read()
13
  elif example.startswith("SARS-CoV-2"):
14
  return open("tipars/ref-tree/sars-cov-2/sars2.fasta").read()
15
 
@@ -157,7 +155,7 @@ with gr.Blocks(css=css) as demo:
157
  )
158
  input_textbox2 = gr.Textbox(label="Sequence")
159
  gr.Examples(
160
- examples=[["H5-20"], ["H5-67"]],
161
  inputs=input_textbox2,
162
  fn=get_sequence_example,
163
  cache_examples=True,
 
6
 
7
 
8
  def get_sequence_example(example):
9
+ if example.startswith("H5"):
10
+ return open("tipars/ref-tree/Influenza-A-H5/H5.fasta").read()
 
 
11
  elif example.startswith("SARS-CoV-2"):
12
  return open("tipars/ref-tree/sars-cov-2/sars2.fasta").read()
13
 
 
155
  )
156
  input_textbox2 = gr.Textbox(label="Sequence")
157
  gr.Examples(
158
+ examples=[["H5"]],
159
  inputs=input_textbox2,
160
  fn=get_sequence_example,
161
  cache_examples=True,
tipars/ref-tree/Influenza-A-H5/H5.fasta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0c0694ff0d986cb686e45ced4de4392e26aa445584ce1dfaaddbd7ae6213754
3
+ size 6872