#843 gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception but has not enabled verbose err

*6ea0:d32f* Posted at: 2 hours ago 👁6

配音阶段出错:无效的值或参数: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().[F5/Index/Spark/Dia TTS]:

Traceback (most recent call last):

File "videotrans\tts\_f5tts.py", line 286, in _item_task

File "tenacity\__init__.py", line 338, in wrapped_f

File "tenacity\__init__.py", line 477, in __call__

File "tenacity\__init__.py", line 378, in iter

File "tenacity\__init__.py", line 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 160, in run

File "videotrans\task\trans_create.py", line 487, in dubbing

File "videotrans\task\trans_create.py", line 745, in _tts

File "videotrans\tts\__init__.py", line 501, in run

File "videotrans\tts\_base.py", line 128, in run

File "videotrans\tts\_f5tts.py", line 41, in _exec

File "videotrans\tts\_base.py", line 189, in _local_mul_thread

File "videotrans\tts\_base.py", line 189, in

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 "videotrans\tts\_f5tts.py", line 288, in _item_task

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\tts\_f5tts.py", line 276, in _run

File "videotrans\tts\_f5tts.py", line 179, in _item_task_index

File "gradio_client\client.py", line 478, in predict

).result()

File "gradio_client\client.py", line 1539, in result

return super().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 launch().

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于您使用的 F5/Index/Spark/Dia TTS 本地语音合成服务没有正确启动或配置导致的。从错误信息可以看出,软件无法连接到本地的 Gradio 服务接口。

问题原因分析:

  • 错误信息显示 "The upstream Gradio app has raised an exception" - 这意味着您本地部署的 TTS 服务(F5-TTS、Index-TTS、Spark-TTS 或 Dia-TTS)出现了异常
  • 这些服务都是需要提前在本地部署并启动的,软件只是通过 API 地址来调用它们

解决方案:

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

  • 请确认您已经正确部署了对应的 TTS 服务(F5-TTS/Index-TTS/Spark-TTS/Dia-TTS)
  • 在命令行中启动该服务,确保服务正常运行且没有报错
  • 检查服务监听的端口是否正确(通常是 7860)

2. 在软件中正确配置 API 地址

  • 打开 pyVideoTrans 的 "TTS设置" 菜单
  • 找到对应的 TTS 服务设置项
  • 确保 API 地址填写正确,格式如:http://127.0.0.1:7860/
  • 如果服务运行在其他端口,请相应修改端口号

3. 启用详细错误报告(可选)

  • 在启动您的 TTS 服务时,添加参数 show_error=Truelaunch() 函数中
  • 这样下次出现错误时就能看到更详细的错误信息

4. 临时解决方案

  • 如果问题持续存在,可以暂时切换到其他可用的 TTS 渠道,如:
  • Edge-TTS(免费在线服务)
  • Azure TTS
  • 其他您已配置成功的本地 TTS 服务

5. 检查网络连接

  • 确保本地防火墙没有阻止软件访问本地服务端口
  • 确认服务地址和端口可正常访问

如果您需要进一步的帮助,请提供更多关于您本地 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

Similar issues already exist

Trending Questions