browser / src /config.ts
lrigamai's picture
Group LoRAs by character, add table view and docked detail panel
45fb44a
Raw History Blame Contribute Delete
1.07 kB
/** Where the browser reads from. Everything else is derived from the Hub at runtime. */
export const config = {
/** Model repo holding the LoRAs. Each top-level folder is treated as a base model. */
repo: "lrigamai/loras",
revision: "main",
/** Top-level folders that aren't base models. */
ignoreDirs: ["Archive"],
/** File extensions counted as LoRA weights. */
extensions: [".safetensors"],
/**
* Optional dataset repo with preview images, laid out as
* `<model folder>/<lora file stem>/<any>.{png,jpg,jpeg,webp}`.
* `null` → generated placeholders only. Must be a public dataset.
*/
previewDataset: "lrigamai/previews" as string | null,
/**
* Character key overrides, for when one person's files are named differently across models:
* lowercased display name → the key to group under, e.g. { "belle_d": "belledelphine" }.
*/
aliases: {} as Record<string, string>,
/** Credit line in the hero; `null` hides it. */
trainer: { name: "ZenTrainer", url: "https://github.com/Nynxz/ZenTrainer" } as { name: string; url: string } | null,
};