Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -322,7 +322,7 @@ for task in tasks:
|
|
322 |
|
323 |
|
324 |
|
325 |
-
class BERTEmbeddings(
|
326 |
def __init__(self, model_name='bert-base-uncased'):
|
327 |
# Load the pre-trained BERT model and tokenizer
|
328 |
self.tokenizer = BertTokenizer.from_pretrained(model_name)
|
|
|
322 |
|
323 |
|
324 |
|
325 |
+
class BERTEmbeddings(Embeddings):
|
326 |
def __init__(self, model_name='bert-base-uncased'):
|
327 |
# Load the pre-trained BERT model and tokenizer
|
328 |
self.tokenizer = BertTokenizer.from_pretrained(model_name)
|