forked from extern/easydiffusion
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:
@ -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
|
||||
|
Reference in New Issue
Block a user