Team Ai
Modelpublic

hebertgo/knowledgebase-intent-llm

sourceHugging Facemitupdated 1y agoView on Hugging Face
2likes36downloads
setup_xcode.sh28 linesDownload Raw Back to root
1#!/bin/bash2# Xcode Integration Script for QwenKnowledgeBase.mlpackage3# Run this script to automatically add the CoreML model to your Xcode project4 5echo "๐Ÿš€ Setting up CoreML model for Xcode integration..."6 7# Check if we're in the right directory8if [ ! -f "QwenKnowledgeBase.mlpackage" ] && [ ! -d "QwenKnowledgeBase.mlpackage" ]; then9    echo "โŒ Error: QwenKnowledgeBase.mlpackage not found in current directory"10    echo "   Make sure you're in the correct directory"11    exit 112fi13 14echo "โœ… Found QwenKnowledgeBase.mlpackage"15echo ""16echo "๐Ÿ“ฑ Next Steps for Xcode Integration:"17echo "1. Open your Xcode project"18echo "2. Drag 'QwenKnowledgeBase.mlpackage' from this directory into your Xcode project"19echo "3. In the dialog that appears:"20echo "   - Check 'Add to targets' for your app"21echo "   - Choose 'Create groups' (not folder references)"22echo "4. Xcode will automatically compile the model to .mlmodelc format"23echo ""24echo "๐ŸŽฏ The model will be available in your app bundle as:"25echo "   Bundle.main.url(forResource: "QwenKnowledgeBase", withExtension: "mlmodelc")"26echo ""27echo "โœ… Integration complete!"28