Update add_new_pipeline.mdx (#18224)

fix typo
This commit is contained in:
Zhi Zheng 2022-07-21 13:55:30 +08:00 committed by GitHub
parent ff56b8fbff
commit dbfeffd7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def _sanitize_parameters(self, **kwargs):
postprocess_kwargs = {}
if "top_k" in kwargs:
preprocess_kwargs["top_k"] = kwargs["top_k"]
postprocess_kwargs["top_k"] = kwargs["top_k"]
return preprocess_kwargs, {}, postprocess_kwargs
```