Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent f283283 commit c8f5d7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comps/embeddings/langchain/embedding_tei_gaudi.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from comps import EmbedDoc1024, TextDoc, opea_microservices, register_microservice


@register_microservice(
name="opea_service@embedding_tgi_gaudi",
expose_endpoint="/v1/embeddings",
Expand All @@ -35,4 +36,4 @@ def safety_guard(input: TextDoc) -> TextDoc:
tei_embedding_endpoint = os.getenv("TEI_ENDPOINT", "http://localhost:8080")
embeddings = HuggingFaceHubEmbeddings(model=tei_embedding_endpoint)
print("TEI Gaudi Embedding initialized.")
opea_microservices["opea_service@embedding_tgi_gaudi"].start()
opea_microservices["opea_service@embedding_tgi_gaudi"].start()

0 comments on commit c8f5d7c

Please sign in to comment.