From 48464938cbd458400cc6b144aeb8c2a6c4d36e94 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 15 Nov 2023 14:49:53 -0500 Subject: [PATCH] Fix tab --- libretranslate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretranslate/app.py b/libretranslate/app.py index 2e1d6f6..e6875eb 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -767,7 +767,7 @@ def create_app(args): # roughly equivalent to a batch process of N batches assuming # each batch uses all available limits if args.char_limit != -1: - request.req_cost = max(1, int(os.path.getsize(filepath) / args.char_limit)) + request.req_cost = max(1, int(os.path.getsize(filepath) / args.char_limit)) translated_file_path = argostranslatefiles.translate_file(src_lang.get_translation(tgt_lang), filepath) translated_filename = os.path.basename(translated_file_path)