From 6049a0686c3523eaad73aa67ed52c048a265114e Mon Sep 17 00:00:00 2001 From: martinb-bb <105685594+martinb-bb@users.noreply.github.com> Date: Fri, 3 Mar 2023 10:03:16 -0500 Subject: [PATCH] create folder (#4390) --- openbb_terminal/forecast/whisper_model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbb_terminal/forecast/whisper_model.py b/openbb_terminal/forecast/whisper_model.py index 8980f35b3d6..2820eead25c 100644 --- a/openbb_terminal/forecast/whisper_model.py +++ b/openbb_terminal/forecast/whisper_model.py @@ -163,6 +163,8 @@ def transcribe_and_summarize( # cache directory is ~/.cache/whisper whisper_cache_dir = os.path.join(os.path.expanduser("~"), ".cache", "whisper") + os.makedirs(whisper_cache_dir, exist_ok=True) + if model_name in ["small", "small.en"]: model_size = "483.6 MB" elif model_name in ["tiny", "tiny.en"]: