wangjin2000 commited on
Commit
63dab7e
·
verified ·
1 Parent(s): 4a62eed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -255,7 +255,7 @@ def predict_peptide_from_file(base_model_path, finetuned_model_path, file_obj, m
255
  for i, row in input.iterrows():
256
  protein_seq = row['Receptor Sequence']
257
  peptide_seq = row['Binder']
258
- peptide_length = min([len(peptide_seq) max_peptide_length]) # use the same length of ground truth peptide length for prediction limited to max_peptide_length
259
 
260
  #get metrics for ground truth peptide
261
  ppl_value = compute_pseudo_perplexity(loaded_model, tokenizer, protein_seq, peptide_seq)
 
255
  for i, row in input.iterrows():
256
  protein_seq = row['Receptor Sequence']
257
  peptide_seq = row['Binder']
258
+ peptide_length = min([len(peptide_seq), max_peptide_length]) # use the same length of ground truth peptide length for prediction limited to max_peptide_length
259
 
260
  #get metrics for ground truth peptide
261
  ppl_value = compute_pseudo_perplexity(loaded_model, tokenizer, protein_seq, peptide_seq)