From 798ca17b3a4bd8cbc0ad04236355cae70f99ecba Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 30 Oct 2024 20:37:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dxinference=20=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E6=A8=A1=E5=9E=8B=E6=8F=90=E7=A4=BAmodel=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047998 --user=刘瑞斌 【模型管理】xinference语音合成模型,点击播放按钮朗读文本没有反应 https://www.tapd.cn/57709429/s/1602805 --- .../models_provider/impl/xinference_model_provider/model/tts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/setting/models_provider/impl/xinference_model_provider/model/tts.py b/apps/setting/models_provider/impl/xinference_model_provider/model/tts.py index 1ba221eed7..14206124db 100644 --- a/apps/setting/models_provider/impl/xinference_model_provider/model/tts.py +++ b/apps/setting/models_provider/impl/xinference_model_provider/model/tts.py @@ -15,12 +15,14 @@ def custom_get_token_ids(text: str): class XInferenceTextToSpeech(MaxKBBaseModel, BaseTextToSpeech): api_base: str api_key: str + model: str params: dict def __init__(self, **kwargs): super().__init__(**kwargs) self.api_key = kwargs.get('api_key') self.api_base = kwargs.get('api_base') + self.model = kwargs.get('model') self.params = kwargs.get('params') @staticmethod