sdxl-turbo / pinokio.js
cocktailpeanut's picture
update
3c87bd8
raw
history blame
998 Bytes
module.exports = {
title: "sdxl turbo",
description: "A Real-Time Text-to-Image Generation Model",
icon: "icon.png",
menu: async (kernel) => {
let installed = await kernel.exists(__dirname, "env")
if (installed) {
let session = await kernel.require(__dirname, "session.json")
console.log("session", session)
return [{
when: "start.json",
on: "<i class='fa-solid fa-spin fa-circle-notch'></i> Running",
type: "label"
}, {
when: "start.json",
off: "<i class='fa-solid fa-power-off'></i> Start",
href: "start.json?fullscreen=true&run=true",
}, {
when: "start.json",
on: "<i class='fa-solid fa-rocket'></i> Launch",
href: (session && session.url ? session.url : "http://127.0.0.1:7860"),
target: "_blank"
}]
} else {
return [{
html: '<i class="fa-solid fa-plug"></i> Install',
href: "install.json?run=true&fullscreen=true"
}]
}
}
}