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

Add Chamges in dockers

parent 63fec276
No related branches found
No related tags found
1 merge request!10Feature/add auth asr service
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -28,7 +28,7 @@ class EmbeddingBaseProcessor(ABC): ...@@ -28,7 +28,7 @@ class EmbeddingBaseProcessor(ABC):
def process_embeddings(self, language: str): def process_embeddings(self, language: str):
words = request.json words = request.json
if isinstance(words, List[str].__class__): if not isinstance(words, List) or not all(isinstance(elem, str) for elem in words):
print(f"words: {words}") print(f"words: {words}")
raise Exception("Incorrect body") raise Exception("Incorrect body")
return jsonify( return jsonify(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment