Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachNagengast committed Jan 16, 2025
1 parent ee58681 commit 4f82b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Sources/WhisperKit/Core/WhisperKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ open class WhisperKit {
modelFolder: config.modelFolder,
download: config.download
)


if let prewarm = config.prewarm, prewarm {
Logging.info("Prewarming models...")
Expand Down Expand Up @@ -314,7 +313,7 @@ open class WhisperKit {
variant: modelVariant,
downloadBase: downloadBase,
useBackgroundSession: useBackgroundDownloadSession,
from: repo,
from: repo,
token: modelToken
)
} catch {
Expand Down
4 changes: 2 additions & 2 deletions Tests/WhisperKitTests/RegressionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class RegressionTests: XCTestCase {
if let modelSizeEnv = ProcessInfo.processInfo.environment["MODEL_NAME"], !modelSizeEnv.isEmpty {
modelsToTest = [modelSizeEnv]
Logging.debug("Model size: \(modelSizeEnv)")

if let repoEnv = ProcessInfo.processInfo.environment["MODEL_REPO"] {
modelReposToTest = [repoEnv]
Logging.debug("Using repo: \(repoEnv)")
Expand Down Expand Up @@ -632,7 +632,7 @@ class RegressionTests: XCTestCase {
let modelSize = try fileManager.allocatedSizeOfDirectory(at: folder)
return Double(modelSize / (1024 * 1024)) // Convert to MB
}

public func initWhisperKitTask(testConfig config: TestConfig, verbose: Bool, logLevel: Logging.LogLevel) -> Task<WhisperKit, Error> {
// Create the initialization task
let initializationTask = Task { () -> WhisperKit in
Expand Down

0 comments on commit 4f82b35

Please sign in to comment.