Skip to content

Commit

Permalink
bugfix: 修复函数调用错误 (#833)
Browse files Browse the repository at this point in the history
* 修复函数调用错误

* 去除多余 print
  • Loading branch information
Dobiichi-Origami authored Oct 12, 2024
1 parent 3478970 commit b9424ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qianfan"
version = "0.4.10"
version = "0.4.10.1"
description = "文心千帆大模型平台 Python SDK"
authors = []
license = "Apache-2.0"
Expand Down
3 changes: 2 additions & 1 deletion python/qianfan/resources/batch_inference/helper/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def _get_exec_cmd(self, cmd: str, *params: Any) -> str:

exec_cmd = (
f"hadoop fs '-Dfs.default.name={host}' '-Dhadoop.job.ugi={ugi}'"
f" {shlex.quote('-{}'.format(cmd))} {' '.join(shlex.quote(str(params)))} "
f" {shlex.quote('-{}'.format(cmd))} "
f"{' '.join([shlex.quote(str(p)) for p in params])} "
)
return exec_cmd

Expand Down

0 comments on commit b9424ba

Please sign in to comment.