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

Fix embedding API

parent 3829ad0b
No related branches found
No related tags found
1 merge request!10Feature/add auth asr service
......@@ -47,7 +47,7 @@ class EmbeddingBaseProcessor(ABC):
app = Flask(__name__)
auth = HTTPTokenAuth(scheme="Bearer")
auth.verify_token(self.is_token_correct)
app.route("/process_embedding", methods=["POST"])(
app.route("/process_embedding/<language>", methods=["POST"])(
auth.login_required(self.process_embeddings)
)
app.route("/health_check", methods=["GET"])(self.health_check)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment