From 45f9f1331f6528250445ab3fc8431c60b833415d Mon Sep 17 00:00:00 2001 From: Guillaume Chervet Date: Tue, 12 Nov 2024 00:05:23 +0100 Subject: [PATCH] Update main.py --- production/ia-worker/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/ia-worker/app/main.py b/production/ia-worker/app/main.py index 9019f9a..2ac1de7 100644 --- a/production/ia-worker/app/main.py +++ b/production/ia-worker/app/main.py @@ -120,7 +120,7 @@ async def transcribe_audio(client_id, chunk_data, chunk_index, app_settings, htt audio_data = waveform.numpy().flatten() # Transcrire l'audio dans un exécuteur - result = await loop.run_in_executor(None, lambda: model.transcribe(audio_data, fp16=False, language="en")) + result = await loop.run_in_executor(None, lambda: model.transcribe(audio_data, fp16=False, language="fr")) # Envoyer la transcription via SSE en incluant chunk_index data = {