Format everything (#211)

This commit is contained in:
Chenlei Hu
2024-07-23 15:40:54 -04:00
committed by GitHub
parent 648e52e39c
commit 1b7db43f8a
25 changed files with 1014 additions and 526 deletions

View File

@@ -13,8 +13,14 @@ async function setup() {
resp.on("end", () => {
// Modify the response data to add some checkpoints
const objectInfo = JSON.parse(data);
objectInfo.CheckpointLoaderSimple.input.required.ckpt_name[0] = ["model1.safetensors", "model2.ckpt"];
objectInfo.VAELoader.input.required.vae_name[0] = ["vae1.safetensors", "vae2.ckpt"];
objectInfo.CheckpointLoaderSimple.input.required.ckpt_name[0] = [
"model1.safetensors",
"model2.ckpt",
];
objectInfo.VAELoader.input.required.vae_name[0] = [
"vae1.safetensors",
"vae2.ckpt",
];
data = JSON.stringify(objectInfo, undefined, "\t");
@@ -24,7 +30,9 @@ async function setup() {
}
const outPath = resolve(outDir, "object_info.json");
console.log(`Writing ${Object.keys(objectInfo).length} nodes to ${outPath}`);
console.log(
`Writing ${Object.keys(objectInfo).length} nodes to ${outPath}`
);
writeFileSync(outPath, data, {
encoding: "utf8",
});
@@ -35,4 +43,4 @@ async function setup() {
});
}
setup();
setup();