only call keepGUIAlive when run as gui

This commit is contained in:
Qing
2022-11-16 17:59:39 +08:00
parent 51daa8d02e
commit 30e205a5f8
3 changed files with 24 additions and 3 deletions

View File

@@ -102,6 +102,12 @@ export function currentModel() {
})
}
export function isDesktop() {
return fetch(`${API_ENDPOINT}/is_desktop`, {
method: 'GET',
})
}
export function modelDownloaded(name: string) {
return fetch(`${API_ENDPOINT}/model_downloaded/${name}`, {
method: 'GET',