Spaces:
Running
on
Zero
Running
on
Zero
Update chunkedTranscriber.py
Browse files- 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):
|