Skip to content

Commit cc692b0

Browse files
committed
whisper.swiftui : fix UIDevice usage
1 parent ebd5ced commit cc692b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/whisper.swiftui/whisper.cpp.swift/LibWhisper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ actor WhisperContext {
119119

120120
whisper_print_timings(context)
121121

122-
let deviceModel = UIDevice.current.model
123-
let systemName = UIDevice.current.systemName
122+
let deviceModel = await UIDevice.current.model
123+
let systemName = await UIDevice.current.systemName
124124
let systemInfo = self.systemInfo()
125125
let timings: whisper_timings = whisper_get_timings(context).pointee
126126
let encodeMs = String(format: "%.2f", timings.encode_ms)

0 commit comments

Comments
 (0)