Skip to content

Commit cb38cb9

Browse files
committed
feat: remove os dependency
1 parent 9cc605d commit cb38cb9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/Hub/HubApi.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import os
109

1110
public struct HubApi {
1211
var downloadBase: URL
@@ -16,7 +15,7 @@ public struct HubApi {
1615

1716
public typealias RepoType = Hub.RepoType
1817
public typealias Repo = Hub.Repo
19-
18+
2019
public init(downloadBase: URL? = nil, hfToken: String? = nil, endpoint: String = "https://huggingface.co", useBackgroundSession: Bool = false) {
2120
self.hfToken = hfToken ?? Self.hfTokenFromEnv()
2221
if let downloadBase {
@@ -28,10 +27,8 @@ public struct HubApi {
2827
self.endpoint = endpoint
2928
self.useBackgroundSession = useBackgroundSession
3029
}
31-
30+
3231
public static let shared = HubApi()
33-
34-
private static let logger = Logger()
3532
}
3633

3734
private extension HubApi {

0 commit comments

Comments
 (0)