Format fix

This commit is contained in:
Self Denial 2024-04-10 20:44:44 -06:00
parent 429242b4d3
commit 81c8717d75

View file

@ -83,7 +83,9 @@ def transcribe(
try: try:
model = WhisperModel(**whisper_kwargs) model = WhisperModel(**whisper_kwargs)
except: except:
log.debug("WhisperModel initialization failed, attempting download with local_files_only=False") log.debug(
"WhisperModel initialization failed, attempting download with local_files_only=False"
)
whisper_kwargs["local_files_only"] = False whisper_kwargs["local_files_only"] = False
model = WhisperModel(**whisper_kwargs) model = WhisperModel(**whisper_kwargs)