SwiftTasksGenAI is a Swift package that facilitates the integration of Google's MediaPipe GenAI solutions into your iOS applications. By adding this package as a dependency, you can seamlessly access MediaPipe's powerful GenAI APIs without the need for CocoaPods.
Disclaimer: This project is an independent endeavor and is not affiliated with Google.
- Swift Package Integration: Simplify your project setup by integrating MediaPipe GenAI through Swift Package Manager.
- Example Application: Includes an adapted version of Google's original example app, showcasing integration via Swift Package Manager instead of CocoaPods.
- Automatic Package Update: On a daily basis the package is updated by a GitHub Action (if needed) and tracks the MediaPipe GenAI Task Pods versioning.
To integrate MediaPipeTasksGenAI into your Xcode project using this package:
-
Add Package Dependency:
- Open your project in Xcode.
- Navigate to
File>Add Packages.... - Enter the repository URL for SwiftTasksGenAI.
- Select the desired version and add the package.
-
Import and Use:
- In your Swift files, finally import MediaPipeTasksGenAI:
import MediaPipeTasksGenAI - Utilize MediaPipe's GenAI APIs as documented.
- In your Swift files, finally import MediaPipeTasksGenAI:
The package includes an adjusted example application (originally from Google) demonstrating use of different LLMs with GenAI. This serves as a practical reference for integrating and utilizing the APIs in your projects.
MediaPipe is a cross-platform framework by Google that offers customizable machine learning solutions for live and streaming media. The GenAI component provides state-of-the-art inference APIs.
For detailed information and documentation, refer to the MediaPipe Tasks Guide.
This project is licensed under the MIT License.
Note: MediaPipe is a trademark of Google. This project is not affiliated with or endorsed by Google.