diff --git a/server.py b/server.py index de96900..0711eb0 100644 --- a/server.py +++ b/server.py @@ -601,6 +601,7 @@ def api_embeddings_compute(): sentences: Union[str, List[str]] = data["text"] if not (isinstance(sentences, str) or (isinstance(sentences, list) and all(isinstance(x, str) for x in sentences))): abort(400, '"text" must be string or array of strings') + print("Computing vector embedding") vectors: Union[np.array, List[np.array]] = sentence_embedder.encode(sentences, show_progress_bar=True, # on ST-extras console convert_to_numpy=True,