#778 怎样不显示 Loaded as API: http://127.0.0.1:7860/ ✔

*8a55:9440* Posted at: 5 hours ago 👁14

怎样不在控制台输出 Loaded as API: http://127.0.0.1:7860/ ✔ 要修改哪个文件的哪个代码

4 Replies

本条内容由 DeepSeek 回复
要禁用控制台输出的 "Loaded as API: http://127.0.0.1:7860/ ✔" 信息,您需要修改 pyVideoTrans 的源代码。

具体修改方法:

1. 找到并打开文件:videotrans/tts/fish_tts.py

2. 在该文件中搜索 print(f"Loaded as API: {url} ✔") 这行代码

3. 在这行代码前添加 # 符号将其注释掉,修改后应该是:

   # print(f"Loaded as API: {url} ✔")

注意事项:

  • 此修改只会影响 Fish-TTS 服务启动时的控制台输出,不会影响其他功能
  • 如果您使用的是预编译版本(如 sp.exe),需要下载源码版本才能进行此修改
  • 修改后需要重新启动软件才能生效
  • 源码下载地址:https://github.com/jianchang512/pyvideotrans

如果您希望保留其他调试信息而只隐藏这一条,这个修改是安全有效的。

666 果然是人工智能 谢谢你

奇怪了 搜了整个项目都找不到 # print(f"Loaded as API: {url} ✔")

Admin

这是第三方模块包里的代码,venv虚拟环境下 gradio_client 模块中搜索

修改出错会导致无法使用

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