This commit is contained in:
carlospolop
2025-08-21 00:23:50 +02:00
parent 414eeda035
commit ea3041d9a2
3 changed files with 188 additions and 1 deletions

View File

@@ -425,7 +425,7 @@ if __name__ == "__main__":
translate_files = None # Need to initialize it here to avoid error
if args.file_paths:
# Translate only the indicated file
translate_files = [f for f in args.file_paths.split(' , ') if f]
translate_files = [f.strip() for f in args.file_paths.split(',') if f]
for file_path in translate_files:
#with tqdm(total=len(all_markdown_files), desc="Translating Files") as pbar:
with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads) as executor: