Skip to content

Commit

Permalink
chore: Disable transformers.generation.utils logging
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Oct 24, 2024
1 parent 3050ca4 commit 3626c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coral/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def block_terminal_output() -> None:
logging.getLogger("accelerate").setLevel(logging.ERROR)
logging.getLogger("pyctcdecode").setLevel(logging.ERROR)
logging.getLogger("transformers.models.whisper").setLevel(logging.ERROR)
logging.getLogger("transformers.generation.utils").setLevel(logging.ERROR)


class transformers_output_ignored:
Expand Down

0 comments on commit 3626c63

Please sign in to comment.