fromAsset static method
Creates interpreter from a assetName
Place your .tflite file in your assets folder.
Example:
final interpreter = await tfl.Interpreter.fromAsset('assets/your_model.tflite');
Implementation
static Future<Interpreter> fromAsset(
String assetName, {
InterpreterOptions? options,
}) async {
Uint8List buffer = await loadAssetBytes(assetName);
return Interpreter.fromBuffer(buffer, options: options);
}