diff --git a/scraibe/cli.py b/scraibe/cli.py index 9dfe395..c07f90f 100644 --- a/scraibe/cli.py +++ b/scraibe/cli.py @@ -5,17 +5,12 @@ The function includes arguments for specifying the audio files, model paths, output formats, and other options necessary for transcription. """ import os -from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter import json - -from .autotranscript import Scraibe -from .misc import ParseKwargs - - +from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from whisper.tokenizer import LANGUAGES, TO_LANGUAGE_CODE from torch.cuda import is_available from torch import set_num_threads - +from .autotranscript import Scraibe def cli(): """ @@ -149,6 +144,5 @@ def cli(): with open(path, "w") as f: f.write(out) - if __name__ == "__main__": cli()