API ReferenceFlutter
ZeticMLangeHFModel
API reference for loading Hugging Face models in Flutter.
This page reflects zetic_mlange 1.9.1.
ZeticMLangeHFModel loads compatible models directly from Hugging Face repositories.
Import
import 'package:zetic_mlange/zetic_mlange.dart';create
static Future<ZeticMLangeHFModel> create(
String repoId, {
String? userAccessToken,
String? manifestDir,
int index = 0,
})| Parameter | Type | Default | Description |
|---|---|---|---|
repoId | String | - | Hugging Face repository ID. |
userAccessToken | String? | null | Optional Hugging Face access token. |
manifestDir | String? | null | Optional local manifest directory. |
index | int | 0 | Model index when a repository contains multiple entries. |
final model = await ZeticMLangeHFModel.create('zetic-ai/yolov11n');run
List<Tensor> run([List<Tensor> inputs = const []])Runs inference and returns output tensors.
Lifecycle
bool get isClosed
void close()Call close() when the model is no longer needed.