Skip to content

Commit

Permalink
feat(deploy): test deployment to kubernetes azure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 30, 2024
1 parent bdb5470 commit 77148de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion production/ia-worker/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down
2 changes: 1 addition & 1 deletion production/webapp/src/AudioRecorderComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 77148de

Please sign in to comment.