Skip to content

Commit

Permalink
fix: minor revision
Browse files Browse the repository at this point in the history
Co-authored-by: felix-wang <[email protected]>
  • Loading branch information
ZiniuYu and numb3r3 authored Jul 20, 2022
1 parent 8c27f1b commit 21cce4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/clip_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 21cce4b

Please sign in to comment.