Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Enable native onnx plugin for droid

Neeraj Gupta508bc4a3e996
diff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/lib/services/machine_learning/ml_model.dart
index a0384f1813..daad0ad61a 100644
--- a/mobile/lib/services/machine_learning/ml_model.dart
+++ b/mobile/lib/services/machine_learning/ml_model.dart
@@ -19,8 +19,7 @@ abstract class MlModel {
final _downloadModelLock = Lock();
- // static final bool usePlatformPlugin = Platform.isAndroid;
- static const bool usePlatformPlugin = false;
+ static final bool usePlatformPlugin = Platform.isAndroid;
bool get isInitialized =>
usePlatformPlugin ? _isNativePluginInitialized : _isFfiInitialized;