llama.swiftui : update models layout (#4826)
* Updated Models Layout - Added a models drawer - Added downloading directly from Hugging Face - Load custom models from local folder - Delete models by swiping left * trimmed trailing white space * Updated Models Layout
This commit is contained in:
parent
5537d9d36b
commit
e790eef21c
5 changed files with 338 additions and 105 deletions
|
@ -53,6 +53,8 @@ struct DownloadButton: View {
|
|||
|
||||
llamaState.cacheCleared = false
|
||||
|
||||
let model = Model(name: modelName, url: modelUrl, filename: filename, status: "downloaded")
|
||||
llamaState.downloadedModels.append(model)
|
||||
status = "downloaded"
|
||||
}
|
||||
} catch let err {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue