iOS
Deploy your On-device AI application to Xcode
We provide ZETIC.MLange iOS Package via Swift Package Manager. You can easily add ZeticMLange to your project!
Prerequisites
Before you begin, make sure you have:
- Model Key: Prepare using Web Dashboard (SaaS) or CLI method
- Personal Key: Prepare using Web Dashboard (SaaS) method
Step-by-step Guide
Add ZeticMLange Package to project
- Click File → Add Package Dependencies in Xcode
- Search for
https://github.com/zetic-ai/ZeticMLangeiOS.git - Click Add Package
Select target to add ZeticMLange Package
- Select target in the Add to Target column
- Click Add Package
Initialize and run ZeticMLangeModel
// (1) Load Zetic MLange model
let model = try ZeticMLangeModel(tokenKey: PERSONAL_KEY, name: PROJECT_NAME, version: VERSION)
// (2) Prepare model inputs
let inputs: [Tensor] = [] // Prepare your inputs
// (3) Run and get output tensors of the model
let outputs = try model.run(inputs)Sample Application
Please refer to MLange iOS sample app repository for complete sample applications and more details.