Spaces:
Sleeping
title: Voila demo deployed on Hugging Face Spaces
emoji: 🚀
colorFrom: yellow
colorTo: green
sdk: docker
pinned: true
license: mit
:warning: The above header is required by Hugging Face!
Voila demo deployed on Hugging Face Spaces
This repository contains an example of deploying Voila dashboards from GitHub to Hugging Face Spaces.
Links.
- Hugging Face Project: https://huggingface.co/spaces/voila-dashboards/voila-huggingface
- Web App: https://voila-dashboards-voila-huggingface.hf.space/
- Spaces Documentation: https://huggingface.co/docs/hub/spaces
How to deploy your own dashboards.
Create a Hugging Face account and generate a user access token with writing rights.
Create a new repository on GitHub by using this repository as a template.
Create a new blank docker Space on Hugging Face.
Replace the project URL defined in
.github/workflows/update-hf.yml(current URL ishuggingface.co/spaces/voila-dashboards/voila-huggingface) with the URL of your Space project.Add 2 secrets to this repository, named
HF_USERfor the Hugging Face user name andHF_TOKENfor the access token.Add new notebooks to the
notebooksdirectory.Update dashboard dependencies in the
environment.ymlfile.On every commit to the
mainbranch, the repository will is synced and deployed to the Hugging Face Spaces.To get direct access to your deployment, go to
Embed this Spaceand copy the direct URL of the Space.