I am building Object detection App using Xcode/ SwiftUI. I am using Resnet50 for image classification and have used this code.
var model = Resnet50().model. I have got this error ('init()' is deprecated: Use init(configuration:) instead and handle errors appropriately.). How to fix this problem.