From 21cce4b4a16b9c9c577d155bf96a81173b05e912 Mon Sep 17 00:00:00 2001 From: Ziniu Yu Date: Wed, 20 Jul 2022 17:28:53 +0800 Subject: [PATCH] fix: minor revision Co-authored-by: felix-wang <35718120+numb3r3@users.noreply.github.com> --- client/clip_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/clip_client/client.py b/client/clip_client/client.py index a0ad23b3f..04ef62716 100644 --- a/client/clip_client/client.py +++ b/client/clip_client/client.py @@ -193,7 +193,7 @@ def _get_post_payload(self, content, kwargs): model_name = parameters.get('model', '') endpoint = f'/encode/{model_name}' payload = dict( - on=endpoint, + on=f'/encode/{model_name}', inputs=self._iter_doc(content), request_size=kwargs.get('batch_size', 8), total_docs=len(content) if hasattr(content, '__len__') else None,