Coool2 commited on
Commit
51dd3c8
·
1 Parent(s): 08df1af

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -210,7 +210,7 @@ def initialize_models(use_api_mode=False):
210
 
211
  def __init__(self, model_name: str = "clip-ViT-B-32", **kwargs: Any) -> None:
212
  super().__init__(**kwargs)
213
- self._model = SentenceTransformer(model_name)
214
 
215
  @classmethod
216
  def class_name(cls) -> str:
 
210
 
211
  def __init__(self, model_name: str = "clip-ViT-B-32", **kwargs: Any) -> None:
212
  super().__init__(**kwargs)
213
+ self._model = SentenceTransformer(model_name, max_position_embeddings=1024)
214
 
215
  @classmethod
216
  def class_name(cls) -> str: