From 207080babcfa14fe53e787112ab95d14d004e967 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 20 Feb 2024 15:16:46 +0800 Subject: [PATCH] fix: audio to text (#2493) --- api/controllers/console/app/audio.py | 1 - api/services/audio_service.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/controllers/console/app/audio.py b/api/controllers/console/app/audio.py index ac90dfcc8d..d2c1891b65 100644 --- a/api/controllers/console/app/audio.py +++ b/api/controllers/console/app/audio.py @@ -47,7 +47,6 @@ class ChatMessageAudioApi(Resource): tenant_id=app_model.tenant_id, file=file, end_user=None, - promot=app_model.app_model_config.pre_prompt ) return response diff --git a/api/services/audio_service.py b/api/services/audio_service.py index 0161fde7bb..a9fe65df6f 100644 --- a/api/services/audio_service.py +++ b/api/services/audio_service.py @@ -20,7 +20,7 @@ ALLOWED_EXTENSIONS = ['mp3', 'mp4', 'mpeg', 'mpga', 'm4a', 'wav', 'webm', 'amr'] class AudioService: @classmethod - def transcript_asr(cls, tenant_id: str, file: FileStorage, promot: str, end_user: Optional[str] = None): + def transcript_asr(cls, tenant_id: str, file: FileStorage, end_user: Optional[str] = None): if file is None: raise NoAudioUploadedServiceError()