(use_api)
| 3 | from openai import OpenAI |
| 4 | |
| 5 | def get_model(use_api): |
| 6 | if use_api: |
| 7 | return APIWhisperTranscriber() |
| 8 | else: |
| 9 | return FasterWhisperTranscriber() |
| 10 | |
| 11 | class FasterWhisperTranscriber: |
| 12 | def __init__(self): |
nothing calls this directly
no test coverage detected