Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jpohhhh committed Apr 23, 2024
1 parent 6fd081a commit 26e33bc
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions ios/Classes/FonnxPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ public class FonnxPlugin: NSObject, FlutterPlugin {
return
}

model.getEmbedding(
tokens: tokens,
completion: { (answer, error) in
if let error = error {
result(
FlutterError(code: "MiniLm", message: "Failed to get embedding", details: error)
)
} else {
result(answer)
}
})
model.getEmbedding(
tokens: tokens,
completion: { (answer, error) in
if let error = error {
result(
FlutterError(code: "MiniLm", message: "Failed to get embedding", details: error)
)
} else {
result(answer)
}
})
}

public func doSileroVad(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
Expand Down Expand Up @@ -177,16 +177,16 @@ public class FonnxPlugin: NSObject, FlutterPlugin {
return
}

model.getTranscription(
audioBytes: audioBytes,
completion: { (answer, error) in
if let error = error {
result(
FlutterError(code: "Whisper", message: "Failed to get transcription", details: error)
)
} else {
result(answer)
}
})
model.getTranscription(
audioBytes: audioBytes,
completion: { (answer, error) in
if let error = error {
result(
FlutterError(code: "Whisper", message: "Failed to get transcription", details: error)
)
} else {
result(answer)
}
})
}
}

0 comments on commit 26e33bc

Please sign in to comment.