Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Turn of native onnx for android

Neeraj Gupta979df107bf75
diff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/lib/services/machine_learning/ml_model.dart
index daad0ad61a..a0384f1813 100644
--- a/mobile/lib/services/machine_learning/ml_model.dart
+++ b/mobile/lib/services/machine_learning/ml_model.dart
@@ -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;