minor corrections

This commit is contained in:
Kristofer Söderström
2023-03-22 15:30:18 +01:00
parent a742cda781
commit 4a64dd7c05
2 changed files with 15 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ def transcribe(path, file_type, model=None, language=None, verbose=True):
for idx,file in enumerate(glob_file):
title = os.path.basename(file).split('.')[0]
print('Transcribing file number number {}: {}'.format(idx+1,file))
print('Transcribing file number number {}: {}'.format(idx+1,title))
print('Model and file loaded...\nStarting transcription...\n')
result = model.transcribe(
file,
@@ -48,4 +48,4 @@ def transcribe(path, file_type, model=None, language=None, verbose=True):
print('\nFinished file number {}.\n\n\n'.format(idx+1))
return 'Finished transcription, files can be found in {}'.format(path)
return 'Finished transcription, files can be found in {}transcriptions'.format(path)