浏览代码

fix tts add bug (#2224)

### What problem does this PR solve?

fix tts add bug

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
tags/v0.11.0
黄腾 1年前
父节点
当前提交
87a998e9e5
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/apps/llm_app.py

+ 1
- 1
api/apps/llm_app.py 查看文件

@@ -236,7 +236,7 @@ def add_llm():
key=llm["api_key"], model_name=llm["llm_name"], base_url=llm["api_base"]
)
try:
for resp in mdl.transcription("Hello~ Ragflower!"):
for resp in mdl.tts("Hello~ Ragflower!"):
pass
except RuntimeError as e:
msg += f"\nFail to access model({llm['llm_name']})." + str(e)

正在加载...
取消
保存