From 87a998e9e53b0f23d157bd46b93f38cad982745c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=85=BE?= <101850389+hangters@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:40:20 +0800 Subject: [PATCH] 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 --- api/apps/llm_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py index c50c0a57..5e045e1c 100644 --- a/api/apps/llm_app.py +++ b/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)