Catch OSError while trying to load cached model

#28

Fixes this:

  File "/mnt/d/Documents/Workspace/audioEditing/models.py", line 536, in __init__
    self.model = StableAudioPipeline.from_pretrained(self.model_id, token=self.token, local_files_only=True

OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like *** is not the path to a directory containing a model_index.json file.
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment