mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-11 15:32:49 +00:00
18 lines
402 B
Swift
18 lines
402 B
Swift
|
import Foundation
|
||
|
|
||
|
struct Model: Identifiable {
|
||
|
var id = UUID()
|
||
|
var name: String
|
||
|
var info: String
|
||
|
var url: String
|
||
|
|
||
|
var filename: String
|
||
|
var fileURL: URL {
|
||
|
FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent(filename)
|
||
|
}
|
||
|
|
||
|
func fileExists() -> Bool {
|
||
|
FileManager.default.fileExists(atPath: fileURL.path)
|
||
|
}
|
||
|
}
|