Skip to content
Snippets Groups Projects
Unverified Commit c0b718cf authored by Marcin Wątroba's avatar Marcin Wątroba
Browse files

Fix embedding API

parent c8cca149
Branches
1 merge request!10Feature/add auth asr service
......@@ -29,7 +29,7 @@ class WebEmbeddingTransformer(EmbeddingTransformer):
if self._auth_token is not None:
headers["Authorization"] = f"Bearer {self._auth_token}"
result = requests.post(
f"{self._host}/embeddings/{self._lang_id}", headers=headers, json=words
f"{self._host}/process_embedding/{self._lang_id}", headers=headers, json=words
)
if not result.ok:
print(f"response_code {result.status_code}")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment