new features
This commit is contained in:
@@ -216,9 +216,10 @@ struct CoreMLModels: View {
|
||||
ForEach(results) { result in
|
||||
HubRepositoryRow(result: result, format: "Core ML") {
|
||||
if result.id == CoreMLDownloads.repository {
|
||||
Button("View Files") { showingAppleFiles = true }
|
||||
Button("Choose Download…") { showingAppleFiles = true }
|
||||
} else {
|
||||
Link("View Files", destination: URL(string: "https://huggingface.co")!.appending(path: result.id))
|
||||
Link("Download Files…", destination: URL(string: "https://huggingface.co")!.appending(path: result.id).appending(path: "tree/main"))
|
||||
.help("Open this model’s downloadable files on Hugging Face.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user