Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
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:
|