#1771 无效的值或参数:The upstream Gradio app has raised anexception but has not enabled verbose error reporting.To enable, set show_e

110.255* Posted at: 4 days ago 👁20

无效的值或参数:The upstream Gradio app has raised an
exception but has not enabled verbose error reporting.
To enable, set show_error=True in launchO.:
Traceback (most recent call last):
File "videotrans(component)onlyone_set_editdubb.py".
line 41, in run
File"videotrans\tts\init__py", line 312, in run
File "videotrans\tts\_base.py",line 188,in run
File "tenacity\_init__py", line 480, in_call
File "videotrans(tts\_f5tts.py", line 307,in_run
File "videotrans\tts\f5tts.py",line 180, in
item_task_index
File "gradio_client)client.py", line 478, in predict
).resultO
File "gradio_client(client.py", line 1539, in result
return superO.result(timeout=timeout)
File "concurrent)futures\_base.py", line 446, in result
File "concurrent'futures\_base.py", line 391, in
_get_result
File"concurrent'futures(thread.py", line 58, in run
File"gradio_client(client.py",line 1158, in_inner
predictions=_predict(*data)
File "gradio_client)client.py", line 1270,in_predict
raise AppError(
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
launchO.

1 Replies

这个错误表明您在使用 F5-TTS 进行语音合成时,连接的后端 Gradio 服务出现了异常,但该服务没有开启详细的错误报告。

核心原因与解决方案:

  1. 检查 F5-TTS 服务是否正常运行:

    • 您需要确保 F5-TTS 的本地服务已经成功启动。请检查您启动 F5-TTS 的命令行窗口,确认服务没有报错并处于正常运行状态。
    • 服务地址(通常是 http://127.0.0.1:7860http://localhost:7860)必须能在浏览器中正常访问。
  2. 在 F5-TTS 服务端启用详细错误报告(关键步骤):

    • 找到您启动 F5-TTS 的命令(例如 python app.py)。
    • 在启动命令中,需要添加参数 --show-errorshow_error=True
    • 修改后的启动命令示例:

      python app.py --show-error

      或者,如果您是通过 Python 脚本启动,请确保在 launch() 函数中设置了 show_error=True

    • 重新启动 F5-TTS 服务后,再次在 pyVideoTrans 中尝试配音。此时 F5-TTS 的服务端控制台应该会打印出更具体的错误信息。
  3. 根据新的错误信息排查:

    • 启用详细错误后,F5-TTS 服务端很可能会显示具体的失败原因,例如:

      • 模型文件缺失或路径错误。
      • 显存不足(CUDA Out of Memory)。
      • 输入的文本格式有问题。
    • 请将服务端显示的新错误信息提供出来,以便进一步诊断。

临时备用方案:
如果急需完成工作,可以暂时在 pyVideoTrans 的配音设置中,将 TTS 引擎切换为其他可用的选项(如 Edge-TTSGPT-SoVITS),以绕过当前的 F5-TTS 连接问题。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions