Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Instruction to install and run locally
npm install
npm run build
npm run dev
// If you want to change something change it in src/....
// Once you are finished
npm run build
// And commit the dist folder
There are two way to load HTML fragments:
src/fragments folder (e.g. src/fragments/banner.html)src/index.html (e.g. {{{fragment-banner}}})src/index.html where you want to insert the fragment (e.g. )npm run dev and look at the console for available fragments14 commits
4 commits
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Instruction to install and run locally
npm install
npm run build
npm run dev
// If you want to change something change it in src/....
// Once you are finished
npm run build
// And commit the dist folder
There are two way to load HTML fragments:
src/fragments folder (e.g. src/fragments/banner.html)src/index.html (e.g. {{{fragment-banner}}})src/index.html where you want to insert the fragment (e.g. )npm run dev and look at the console for available fragments14 commits
4 commits