revert to check seqvec from bio_embeddings allennlp only
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def display_dti():
|
|
97 |
'Select encoder for protein target',('None', 'SeqVec', 'UniRep', 'ESM-1b', 'ProtT5')
|
98 |
)
|
99 |
if selected_encoder == 'SeqVec':
|
100 |
-
from
|
101 |
encoder = SeqVecEmbedder()
|
102 |
embedding = encoder([sequence])
|
103 |
embedding = encoder.reduce_per_protein(embedding)
|
|
|
97 |
'Select encoder for protein target',('None', 'SeqVec', 'UniRep', 'ESM-1b', 'ProtT5')
|
98 |
)
|
99 |
if selected_encoder == 'SeqVec':
|
100 |
+
from bio_embeddings.embed import SeqVecEmbedder
|
101 |
encoder = SeqVecEmbedder()
|
102 |
embedding = encoder([sequence])
|
103 |
embedding = encoder.reduce_per_protein(embedding)
|