Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet authored Nov 11, 2024
1 parent ece20ba commit 45f9f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion production/ia-worker/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 45f9f13

Please sign in to comment.