Skip to content

Commit

Permalink
Fix build issue in example app from #38
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachNagengast authored Apr 18, 2024
1 parent ef737c4 commit 642ba49
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Examples/BasicExample/BasicExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 642ba49

Please sign in to comment.