New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete the model #11
Comments
Could you share more details? Is this when you are doing |
Also note that the result of let folder = try await WhisperKit.load(variant: model, from: repoName, progressCallback: { progress in
...
} will be the exact url of the folder where the models are contained. In order to delete the entire folder, you may want to use something like this:
If that doesn't help then try to check the error that |
@ZachNagengast curious why is there a fallback option pointed to "base model" in the framework I wish this could be null because user already has the UI to select to which model they want to load (by default it could be none) |
FYI modelFolder is a now an optional, but we also have a default recommended model depending on hardware type. |
It looks like the model is deleted when I use FIleManager removeAt method but when I re-run the project the deleted model appears again.
FileManager.default.removeItem(at: URL.init(string: "file://" + "(path)")!)
The text was updated successfully, but these errors were encountered: