Spaces:
Running
Running
File size: 344 Bytes
95e3d2a 31d3580 | 1 2 3 4 5 6 7 8 9 10 11 | import { DATASET } from '$lib/types';
const REF = 'main';
export type FetchOpts = { fetch?: typeof fetch; signal?: AbortSignal };
/** Build a `huggingface.co/datasets/<repo>/resolve/main/<path>` URL. */
export function resolveUrl(repoPath: string): string {
return `https://huggingface.co/datasets/${DATASET}/resolve/${REF}/${repoPath}`;
}
|