Add comments for threads
This commit is contained in:
parent
b77bc4ec06
commit
9d7e8896a1
3 changed files with 5 additions and 3 deletions
|
|
@ -14,7 +14,9 @@ from modules.json import handleJSON
|
|||
from modules.kansen import handleKansen
|
||||
from modules.lune import handleLune
|
||||
|
||||
THREADS = 5 # For GPT4 rate limit will be hit if you have more than 1 thread.
|
||||
# For GPT4 rate limit will be hit if you have more than 1 thread.
|
||||
# 1 Thread for each file. Controls how many files are worked on at once.
|
||||
THREADS = 5
|
||||
|
||||
# Info Message
|
||||
tqdm.write(Fore.LIGHTYELLOW_EX + "WARNING: Once a translation starts do not close it unless you want to lose your\
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ openai.api_key = os.getenv('key')
|
|||
INPUTAPICOST = .002 # Depends on the model https://openai.com/pricing
|
||||
OUTPUTAPICOST = .002
|
||||
PROMPT = Path('prompt.txt').read_text(encoding='utf-8')
|
||||
THREADS = 10
|
||||
THREADS = 10 # Controls how many threads are working on a single file (May have to drop this)
|
||||
LOCK = threading.Lock()
|
||||
WIDTH = 50
|
||||
LISTWIDTH = 90
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ openai.api_key = os.getenv('key')
|
|||
INPUTAPICOST = .002 # Depends on the model https://openai.com/pricing
|
||||
OUTPUTAPICOST = .002
|
||||
PROMPT = Path('prompt.txt').read_text(encoding='utf-8')
|
||||
THREADS = 10
|
||||
THREADS = 10 # Controls how many threads are working on a single file (May have to drop this)
|
||||
LOCK = threading.Lock()
|
||||
WIDTH = 50
|
||||
LISTWIDTH = 90
|
||||
|
|
|
|||
Loading…
Reference in a new issue