forked from phoenix-oss/llama-stack-mirror
fix: dont assume SentenceTransformer is imported
as titled
This commit is contained in:
parent
967cff4533
commit
c0c7622295
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class SentenceTransformerEmbeddingMixin:
|
|||
)
|
||||
return EmbeddingsResponse(embeddings=embeddings)
|
||||
|
||||
def _load_sentence_transformer_model(self, model: str) -> SentenceTransformer:
|
||||
def _load_sentence_transformer_model(self, model: str) -> "SentenceTransformer":
|
||||
global EMBEDDING_MODELS
|
||||
|
||||
loaded_model = EMBEDDING_MODELS.get(model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue