3d-arena / src /routes /utils /getConfig.ts
dylanebert
support alternative display names
5679415
raw
history blame contribute delete
354 Bytes
import type { Config } from "./Config";
export async function getConfig(modelName: string): Promise<Config> {
const configUrl = `https://huggingface.co/datasets/dylanebert/3d-arena/resolve/main/outputs/${modelName}/config.json`;
const configResponse = await fetch(configUrl);
const config = await configResponse.json();
return config;
}