Instead of adding a mlmodel file directly, you may need a compiled file with ".mlmodelc" to make it work.
You can find more infomation here. - https://developer.apple.com/documentation/coreml/mlmodel/2921516-compilemodel
I tried to run my ML model code in a Xcode project, and i got a compiled file with ".mlmodelc" extension.
Bring this ".mlmodelc" file to my playgroundbook file works fine!
🦁️🦁️🦁️🦁️🦁️ Hope this will help you!
Topic:
Community
SubTopic:
Swift Student Challenge
Tags: