Instructions to use litert-community/Laya-Multilingual-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/Laya-Multilingual-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Laya
How to use litert-community/Laya-Multilingual-LiteRT with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download android/app/src/debug/java/com/laya/LayaGateEntry.kt from litert-community/Laya-Multilingual-LiteRT: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/litert-community/Laya-Multilingual-LiteRT/resolve/main/android/app/src/debug/java/com/laya/LayaGateEntry.kt
- Command line
-
hf download hf://litert-community/Laya-Multilingual-LiteRT/android/app/src/debug/java/com/laya/LayaGateEntry.kt
-
curl -L -o LayaGateEntry.kt https://huggingface.co/litert-community/Laya-Multilingual-LiteRT/resolve/main/android/app/src/debug/java/com/laya/LayaGateEntry.kt
652 Bytes
| // SPDX-License-Identifier: Apache-2.0 | |
| package com.laya | |
| import android.content.Context | |
| /** Bridges debug launch extras to the fixture runner without shipping it in release. */ | |
| object LayaGateEntry { | |
| /** Location and completion state of the on-device JSON report. */ | |
| data class Result(val path: String, val status: String, val error: String? = null) | |
| /** Runs on the ViewModel's confined model dispatcher. */ | |
| fun run(context: Context, engine: LayaEngine, backend: LayaEngine.Backend, window: Int): Result { | |
| val report = LayaGateRunner(context, engine).run(backend, window) | |
| return Result(report.path, report.status, report.error) | |
| } | |
| } | |