Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
freethenation committed Oct 14, 2023
1 parent f667ee6 commit 554b0b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ class APISettings(BaseSettings):
description: str = "High Performance Language Inference API"
version: str = "1.0"

# Note: More beams is more accurate but slower.
# default beam_size - 5 is lib default, 1 for greedy
beam_size: int = 1
# default beam size for longer transcriptions
long_beam_size: int = 3
# Audio duration in ms to activate "long" mode. Any audio longer than this will use long_beam_size. More beams is more accurate but slower.
# Audio duration in ms to activate "long" mode. Any audio longer than this will use long_beam_size.
long_beam_size_threshold: int = 12000
model_threads: int = 10

Expand Down

0 comments on commit 554b0b8

Please sign in to comment.