#3202 TypeError: Parameter `return_ts` is not a valid key-word argument. Please click on 'view API' in the footer of the Gradi

188.253* Posted at: 15 hours ago 👁12

程序内部错误:Parameter return_ts is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 17, in run
File "videotrans\recognition\__init__.py", line 256, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_qwenasrlocal.py", line 32, in _exec
File "gradio_client\client.py", line 496, in predict
File "gradio_client\client.py", line 547, in submit
File "gradio_client\utils.py", line 1279, in construct_args
TypeError: Parameter return_ts is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.


=
system:Windows-10-10.0.26100-SP0
version:v3.96
frozen:True
language:zh
root_dir:F:/Video_Transform/win-pyvideotrans-v3.96-24

1 Replies

这是由于您使用的 Qwen-ASR 本地 API 服务的接口参数与 pyVideoTrans 软件当前版本不兼容导致的。具体来说,软件向 API 发送了 return_ts 参数,但该 API 服务不支持此参数。

解决方案

  1. 检查并更新 Qwen-ASR 本地服务:确保您启动的 Qwen-ASR 服务是最新版本,其 API 接口应支持 return_ts 参数。请参考 Qwen-ASR 官方项目更新。
  2. 在 pyVideoTrans 中调整配置

    • 打开 pyVideoTrans 软件。
    • 进入菜单栏的 “语音识别设置”
    • 找到 “Qwen-ASR(本地)” 渠道。
    • “API地址” 输入框的末尾,手动添加 /run 路径。例如,如果原来的地址是 http://127.0.0.1:7860,请修改为 http://127.0.0.1:7860/run
    • 保存设置后重试。

如果以上方法无效
根据现有文档无法确定具体原因。请提供软件安装目录下的 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息)以便分析。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource