Skip to content

Commit

Permalink
Default options updated
Browse files Browse the repository at this point in the history
Since desyncs seem to be resolved now, we can improve results by sending slightly larger batches (also faster/cheaper).
  • Loading branch information
machinewrapped committed Jun 11, 2023
1 parent 78d089f commit 212b74e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PySubtitleGPT/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def env_bool(key, default=False):
'temperature': float(os.getenv('TEMPERATURE', 0.0)),
'allow_retranslations': env_bool('ALLOW_RETRANSLATIONS', True),
'scene_threshold': float(os.getenv('SCENE_THRESHOLD', 30.0)),
'batch_threshold': float(os.getenv('BATCH_THRESHOLD', 5.0)),
'min_batch_size': int(os.getenv('MIN_BATCH_SIZE', 5)),
'max_batch_size': int(os.getenv('MAX_BATCH_SIZE', 25)),
'batch_threshold': float(os.getenv('BATCH_THRESHOLD', 7.0)),
'min_batch_size': int(os.getenv('MIN_BATCH_SIZE', 7)),
'max_batch_size': int(os.getenv('MAX_BATCH_SIZE', 30)),
'max_context_summaries': int(os.getenv('MAX_CONTEXT_SUMMARIES', 10)),
'max_characters': int(os.getenv('MAX_CHARACTERS', 120)),
'max_characters': int(os.getenv('MAX_CHARACTERS', 99)),
'max_newlines': int(os.getenv('MAX_NEWLINES', 3)),
'match_partial_words': env_bool('MATCH_PARTIAL_WORDS', False),
'whitespaces_to_newline' : env_bool('WHITESPACES_TO_NEWLINE', False),
Expand Down

0 comments on commit 212b74e

Please sign in to comment.