From 7a98fd318973f8ee01dda3a66db8ad35e3055d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20W=C4=85troba?= <markowanga@gmail.com> Date: Tue, 17 Aug 2021 20:37:09 +0200 Subject: [PATCH] Fix embedding API --- .../service_core/embedding/embedding_base_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sziszapangma/integration/service_core/embedding/embedding_base_processor.py b/sziszapangma/integration/service_core/embedding/embedding_base_processor.py index 358299c..d413dbb 100644 --- a/sziszapangma/integration/service_core/embedding/embedding_base_processor.py +++ b/sziszapangma/integration/service_core/embedding/embedding_base_processor.py @@ -28,8 +28,8 @@ class EmbeddingBaseProcessor(ABC): def process_embeddings(self, language: str): words = request.json - print(words) if words is not List[str]: + print(f'words: {words}') raise Exception("Incorrect body") return jsonify( {word: self.numpy_to_list(self.get_embedding(word, language)) for word in words} -- GitLab