#4061 无效的值或参数:The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show

95.85* Posted at: 6 hours ago 👁16

无效的值或参数:The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 416, in run
File "videotrans\tts\_base.py", line 181, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_omnivoice.py", line 63, in _item_task
File "gradio_client\client.py", line 499, in predict
File "gradio_client\client.py", line 1484, in result
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "gradio_client\client.py", line 1080, in _inner
File "gradio_client\client.py", line 1194, in _predict
gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().


=
system:Windows-10-10.0.19045-SP0
version:v3.98
frozen:True
language:zh
root_dir:A:/BaiduNetdiskDownload/py

1 Replies

这是在使用 OmniVoice-TTS 配音渠道时,其外部 API 服务(Gradio 应用)内部发生了错误,但未返回详细错误信息。

  1. 检查 OmniVoice-TTS 服务状态:确保你已正确部署并启动了 OmniVoice-TTS 的 API 服务(通常是一个在终端中运行的 WebUI 或服务端程序)。该服务必须处于运行状态,且 pyVideoTrans 中配置的 API 地址(如 http://127.0.0.1:7860)必须与服务地址和端口完全一致。
  2. 重启 OmniVoice-TTS 服务:关闭其服务终端窗口,然后重新启动。在启动命令中,添加参数 show_error=True 以启用详细错误报告。例如,如果你的启动命令是 python app.py,请改为 python app.py --show_error=True 或在其启动脚本中设置 launch(show_error=True)
  3. 检查 pyVideoTrans 配置:在 pyVideoTrans 的 菜单 -> 翻译设置 -> OmniVoice-TTS设置 中,确认 API 地址和端口号填写正确。
  4. 更新软件版本:此错误可能与 OmniVoice 服务的 API 接口更新有关。请确保你使用的是 pyVideoTrans v3.98-0410 或更高版本,该版本已适配 OmniVoice 新增的必选参数 instruct。请从官网下载最新完整包覆盖。

请查阅相关文档:

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