Skip to content

Commit

Permalink
Update model size with fetching from env
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope authored Jul 18, 2024
1 parent b6b4918 commit c297a82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions point.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

logger = logging.getLogger("point")

model_size = "base"

model_size = os.getenv("WHISPER_MODEL_SIZE", "base")

def transcribe(audio_file: io.BytesIO) -> Iterator[str]:
header = time.strftime("%Y-%m-%d %H:%M:%S") + f", transcript with {model_size}"
Expand Down

0 comments on commit c297a82

Please sign in to comment.