mirror of https://github.com/suno-ai/bark.git
bug in env var USE_SMALL_MODELS (#236)
parent
29e68a2e1b
commit
dd17fb00af
|
@ -137,7 +137,7 @@ def _grab_best_device(use_gpu=True):
|
|||
|
||||
def _get_ckpt_path(model_type, use_small=False):
|
||||
key = model_type
|
||||
if use_small:
|
||||
if use_small or USE_SMALL_MODELS:
|
||||
key += "_small"
|
||||
return os.path.join(CACHE_DIR, REMOTE_MODEL_PATHS[key]["file_name"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue