colbyford commited on
Commit
ba78521
1 Parent(s): 4d5beeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def make_cond_seq(seq_len, msa_file, model_type):
25
  if model_type == "EvoDiff-MSA":
26
  checkpoint = MSA_OA_DM_MAXSUB()
27
  model, collater, tokenizer, scheme = checkpoint
28
- tokeinzed_sample, generated_sequence = generate_query_oadm_msa_simple(msa_file, model, tokenizer, n_sequences=64, seq_length=seq_len, device='cpu', selection_type='random')
29
 
30
  return generated_sequence
31
 
@@ -48,6 +48,7 @@ csg_app = gr.Interface(
48
  gr.Dropdown(["EvoDiff-MSA"], type="value", label = "Model")
49
  ],
50
  outputs="text",
 
51
  title = "Conditional sequence generation",
52
  description="Evolutionary guided sequence generation with the `EvoDiff-MSA` model."
53
  )
 
25
  if model_type == "EvoDiff-MSA":
26
  checkpoint = MSA_OA_DM_MAXSUB()
27
  model, collater, tokenizer, scheme = checkpoint
28
+ tokeinzed_sample, generated_sequence = generate_query_oadm_msa_simple(msa_file.name, model, tokenizer, n_sequences=64, seq_length=seq_len, device='cpu', selection_type='random')
29
 
30
  return generated_sequence
31
 
 
48
  gr.Dropdown(["EvoDiff-MSA"], type="value", label = "Model")
49
  ],
50
  outputs="text",
51
+ examples=["https://github.com/microsoft/evodiff/raw/main/examples/example_files/bfd_uniclust_hits.a3m"],
52
  title = "Conditional sequence generation",
53
  description="Evolutionary guided sequence generation with the `EvoDiff-MSA` model."
54
  )