Kr08 commited on
Commit
18d9f31
·
verified ·
1 Parent(s): 470c6fe

Update chunkedTranscriber.py

Browse files
Files changed (1) hide show
  1. chunkedTranscriber.py +1 -1
chunkedTranscriber.py CHANGED
@@ -390,7 +390,7 @@ class ChunkedTranscriber:
390
  _translation+=res['translated']
391
  _output+=f"{res['start_time']}-{res['end_time']} - Speaker: {res['speaker'].split('_')[1]} - Language: {res['detected_language']}\n Text: {res['text']}\n Translation: {res['translated']}\n\n"
392
  logger.info(f"\n\n TRANSLATION: {_translation}")
393
- return _output
394
 
395
 
396
  def load_audio(self, audio_path):
 
390
  _translation+=res['translated']
391
  _output+=f"{res['start_time']}-{res['end_time']} - Speaker: {res['speaker'].split('_')[1]} - Language: {res['detected_language']}\n Text: {res['text']}\n Translation: {res['translated']}\n\n"
392
  logger.info(f"\n\n TRANSLATION: {_translation}")
393
+ return _translation, _output
394
 
395
 
396
  def load_audio(self, audio_path):