[mob] Turn of native onnx for android

This commit is contained in:
Neeraj Gupta
2024-08-19 14:19:19 +05:30
parent aaebef5b22
commit 979df107bf

View File

@@ -19,7 +19,8 @@ abstract class MlModel {
final _downloadModelLock = Lock();
static final bool usePlatformPlugin = Platform.isAndroid;
// static final bool usePlatformPlugin = Platform.isAndroid;
static const bool usePlatformPlugin = false;
bool get isInitialized =>
usePlatformPlugin ? _isNativePluginInitialized : _isFfiInitialized;