Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

504 B
Raw Blame
import { atom } from 'nanostores';

type InstallModelsTabName = 'launchpad' | 'urlOrLocal' | 'huggingface' | 'external' | 'scanFolder' | 'starterModels';

const TAB_TO_INDEX_MAP: Record<InstallModelsTabName, number> = {
  launchpad: 0,
  urlOrLocal: 1,
  huggingface: 2,
  external: 3,
  scanFolder: 4,
  starterModels: 5,
};

export const setInstallModelsTabByName = (tab: InstallModelsTabName) => {
  $installModelsTabIndex.set(TAB_TO_INDEX_MAP[tab]);
};
export const $installModelsTabIndex = atom(0);