Spaces:
Paused
Paused
Update app.py
Browse files
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 =
|
| 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
|