wangjin2000 commited on
Commit
7cb8f96
·
verified ·
1 Parent(s): 970c8b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -206,7 +206,7 @@ def predict_peptide(base_model_path, finetuned_model_path, input_seqs, peptide_l
206
 
207
  #combine target protein and peptide with 20 G amino acids.
208
  separator = 'G' * 20
209
- peptide_lp = sort(results_df['Pseudo Perplexity'])[-1] #Choosing the one with the lowest perplexity
210
  print("lowest perplesity:", peptide_lp)
211
 
212
  return results_df
 
206
 
207
  #combine target protein and peptide with 20 G amino acids.
208
  separator = 'G' * 20
209
+ peptide_lp = results_df['Pseudo Perplexity'].idxmin() #Choosing the one with the lowest perplexity
210
  print("lowest perplesity:", peptide_lp)
211
 
212
  return results_df