Spaces:
Runtime error
Runtime error
TianlaiChen
commited on
Commit
•
c6b3e88
1
Parent(s):
4ed0ba3
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ import numpy as np
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
10 |
-
model = AutoModelForMaskedLM.from_pretrained("
|
11 |
|
12 |
def compute_pseudo_perplexity(model, tokenizer, protein_seq, binder_seq):
|
13 |
sequence = protein_seq + binder_seq
|
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained("ChatterjeeLab/PepMLM-650M")
|
10 |
+
model = AutoModelForMaskedLM.from_pretrained("ChatterjeeLab/PepMLM-650M")
|
11 |
|
12 |
def compute_pseudo_perplexity(model, tokenizer, protein_seq, binder_seq):
|
13 |
sequence = protein_seq + binder_seq
|