From 77148de2ecff3d344ea1816c5f1bf844d6e80eed Mon Sep 17 00:00:00 2001 From: Guillaume Chervet Date: Wed, 30 Oct 2024 21:58:08 +0100 Subject: [PATCH] feat(deploy): test deployment to kubernetes azure --- production/ia-worker/app/main.py | 2 +- production/webapp/src/AudioRecorderComponent.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/production/ia-worker/app/main.py b/production/ia-worker/app/main.py index 272bb00..d02ccaf 100644 --- a/production/ia-worker/app/main.py +++ b/production/ia-worker/app/main.py @@ -136,7 +136,7 @@ async def send_sse_message(client_id, message, chunk_index): json_data = json.dumps(data) app_settings = app_settings_factory_get()() http_service = http_service_factory_get()() - response = await http_service.post(app_settings.url_slimfaas + "/publish-event/transcript", data=json_data, headers={"Content-Type": "application/json"}) + response = await http_service.post(app_settings.url_slimfaas + "/publish-event/transcript/transcript", data=json_data, headers={"Content-Type": "application/json"}) print("Reponse code: " + str(response.status_code)) diff --git a/production/webapp/src/AudioRecorderComponent.jsx b/production/webapp/src/AudioRecorderComponent.jsx index 026b26b..9333f9b 100644 --- a/production/webapp/src/AudioRecorderComponent.jsx +++ b/production/webapp/src/AudioRecorderComponent.jsx @@ -104,11 +104,11 @@ const AudioRecorderComponent = ({}) => { }, onDataAvailable: (data) => { console.log('Enregistrement de données audio (callback)'); - sendAudioChunk(baseUrl)(data, clientId, closureChunkIndex); setChunkIndex((prevIndex) =>{ closureChunkIndex++; return prevIndex + 1; }); + sendAudioChunk(baseUrl)(data, clientId, closureChunkIndex); }, onError: (err) => { console.error('Erreur de l\'enregistreur audio :', err);