Skip to content

Commit

Permalink
Enable faster_whisper debug logs when verbose flag is set
Browse files Browse the repository at this point in the history
Addressing Softcatala#17
  • Loading branch information
FlippFuzz authored Apr 17, 2023
1 parent 2542910 commit e00c5ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/whisper_ctranslate2/whisper_ctranslate2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from .version import __version__
from .live import Live
import sys
import logging


def optional_int(string):
Expand Down Expand Up @@ -308,6 +309,10 @@ def main():
temperature = [temperature]

language = from_language_to_iso_code(language)

if verbose:
logging.basicConfig()
logging.getLogger("faster_whisper").setLevel(logging.DEBUG)

if (
not model_directory
Expand Down

0 comments on commit e00c5ec

Please sign in to comment.