Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add bpePath to CLIPTokenizer

0nullpointerd7cacce1d86f
diff --git a/lib/services/semantic_search/frameworks/onnx.dart b/lib/services/semantic_search/frameworks/onnx.dart
index a63811a2ef..b881b109b0 100644
--- a/lib/services/semantic_search/frameworks/onnx.dart
+++ b/lib/services/semantic_search/frameworks/onnx.dart
@@ -281,7 +281,7 @@ class CLIPTokenizer {
late int sot;
late int eot;
- CLIPTokenizer();
+ CLIPTokenizer(this.bpePath);
// Async method since the loadFile returns a Future and dart constructor cannot be async
Future init() async {