Demosthene-OR commited on
Commit
9641cc8
1 Parent(s): 875f297

Identification de la langue parlée uniquement avec whisper

Browse files
Files changed (1) hide show
  1. tabs/modelisation_seq2seq_tab.py +1 -1
tabs/modelisation_seq2seq_tab.py CHANGED
@@ -509,7 +509,7 @@ def run():
509
  custom_sentence = result["text"]
510
  else:
511
  Lang_detected = l_src
512
- result = model_speech.transcribe(audio_input, source_language=Lang_detected)
513
  custom_sentence = result["text"]
514
  """
515
  else:
 
509
  custom_sentence = result["text"]
510
  else:
511
  Lang_detected = l_src
512
+ result = model_speech.transcribe(audio_input, language=Lang_detected)
513
  custom_sentence = result["text"]
514
  """
515
  else: