소스 검색

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
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/apps/llm_app.py

+ 1
- 1
api/apps/llm_app.py 파일 보기

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

Loading…
취소
저장