Skip to content
Snippets Groups Projects

Feature/add auth asr service

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -28,7 +28,7 @@ class EmbeddingBaseProcessor(ABC):
def process_embeddings(self, language: str):
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}")
raise Exception("Incorrect body")
return jsonify(
Loading