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

Fix embedding API

parent 7a98fd31
Branches
1 merge request!10Feature/add auth asr service
......@@ -29,7 +29,7 @@ class EmbeddingBaseProcessor(ABC):
def process_embeddings(self, language: str):
words = request.json
if words is not List[str]:
print(f'words: {words}')
print(f"words: {words}")
raise Exception("Incorrect body")
return jsonify(
{word: self.numpy_to_list(self.get_embedding(word, language)) for word in words}
......
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