From 309957545a0325bb041c4c5580aa44488ea345cf Mon Sep 17 00:00:00 2001 From: Dazed Date: Sat, 9 Dec 2023 12:35:01 -0600 Subject: [PATCH] Fix count error --- modules/alice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/alice.py b/modules/alice.py index d376d94..e999d7c 100644 --- a/modules/alice.py +++ b/modules/alice.py @@ -48,7 +48,7 @@ if 'gpt-3.5' in MODEL: elif 'gpt-4' in MODEL: INPUTAPICOST = .01 OUTPUTAPICOST = .03 - BATCHSIZE = 50 + BATCHSIZE = 10 def handleAlice(filename, estimate): global ESTIMATE @@ -222,12 +222,14 @@ def translateLines(linesList, pbar): else: pbar.write(f'Mismatch: {batchStartIndex} - {i}') MISMATCH.append(batch) + i += 1 batchStartIndex = i batch.clear() + else: + i += 1 multiLine = False currentGroup = [] - i += 1 pbar.update(1) # [Passthrough 2] Setting Data