From 642ba49b92dd2cddd46ce0c7ad9f5b6bd091aaef Mon Sep 17 00:00:00 2001 From: Zach Nagengast Date: Thu, 18 Apr 2024 13:45:52 -0700 Subject: [PATCH] Fix build issue in example app from #38 --- Examples/BasicExample/BasicExample/ContentView.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Examples/BasicExample/BasicExample/ContentView.swift b/Examples/BasicExample/BasicExample/ContentView.swift index 12e51cb..9437b8a 100644 --- a/Examples/BasicExample/BasicExample/ContentView.swift +++ b/Examples/BasicExample/BasicExample/ContentView.swift @@ -20,9 +20,6 @@ struct ContentView: View { func loadIndex() async { var model: any EmbeddingsProtocol = MiniLMEmbeddings() - #if canImport(NaturalLanguage.NLContextualEmbedding) - embeddingModel = NativeContextualEmbeddings(language: .english) - #else similarityIndex = await SimilarityIndex( model: model,