Improve responsiveness of UI startup by not waiting for render threads to start up before showing the UI. Errors while starting the render thread will be logged anyway, so there's no need to block the main thread for this

This commit is contained in:
cmdr2
2023-07-08 23:28:47 +05:30
parent 2bd1cceb24
commit 37e8158175
8 changed files with 63 additions and 49 deletions

View File

@ -1121,13 +1121,13 @@
return systemInfo.hosts
}
async function getModels() {
async function getModels(scanForMalicious = true) {
let models = {
"stable-diffusion": [],
vae: [],
}
try {
const res = await fetch("/get/models")
const res = await fetch("/get/models?scan_for_malicious=" + scanForMalicious)
if (!res.ok) {
console.error("Invalid response fetching models", res.statusText)
return models