Fix filename in modules
This commit is contained in:
parent
851cf85923
commit
7baffb8cc0
2 changed files with 6 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ ESTIMATE = ""
|
|||
TOKENS = [0, 0]
|
||||
NAMESLIST = []
|
||||
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
||||
FILENAME = None
|
||||
|
||||
# Open AI
|
||||
load_dotenv()
|
||||
|
|
@ -70,8 +71,9 @@ LEAVE = False
|
|||
|
||||
|
||||
def handleImages(folderName, estimate):
|
||||
global ESTIMATE, TOKENS
|
||||
global ESTIMATE, TOKENS, FILENAME
|
||||
ESTIMATE = estimate
|
||||
FILENAME = folderName
|
||||
start = time.time()
|
||||
|
||||
# Translate Strings
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ BRFLAG = False # If the game uses <br> instead
|
|||
FIXTEXTWRAP = True # Overwrites textwrap
|
||||
IGNORETLTEXT = False # Ignores all translated text.
|
||||
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
||||
FILENAME = None
|
||||
|
||||
# tqdm Globals
|
||||
BAR_FORMAT = "{l_bar}{bar:10}{r_bar}{bar:-10b}"
|
||||
|
|
@ -74,8 +75,9 @@ TRANSLATION_CONFIG = TranslationConfig(
|
|||
LEAVE = False
|
||||
|
||||
def handlePlugin(filename, estimate):
|
||||
global ESTIMATE, PBAR
|
||||
global ESTIMATE, PBAR, FILENAME
|
||||
ESTIMATE = estimate
|
||||
FILENAME = filename
|
||||
|
||||
if ESTIMATE:
|
||||
start = time.time()
|
||||
|
|
|
|||
Loading…
Reference in a new issue