https://github.com/nateraw/spaces-template
A 🔥 cookiecutter template for building Hugging Face Spaces
https://github.com/nateraw/spaces-template
cookiecutter gradio huggingface machine-learning project-template streamlit template
Last synced: 12 months ago
JSON representation
A 🔥 cookiecutter template for building Hugging Face Spaces
- Host: GitHub
- URL: https://github.com/nateraw/spaces-template
- Owner: nateraw
- Created: 2021-07-28T21:17:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T16:24:31.000Z (over 4 years ago)
- Last Synced: 2025-04-23T13:33:11.333Z (about 1 year ago)
- Topics: cookiecutter, gradio, huggingface, machine-learning, project-template, streamlit, template
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hugging Face Spaces Template
## Setup
### 1. Install `cookiecutter` and `huggingface_hub`
```
pip install cookiecutter huggingface_hub
```
### 2. Install GitHub's CLI tool, `gh`
Instructions can be found [here](https://cli.github.com/manual/installation). Make sure to [authenticate](https://cli.github.com/manual/gh_auth_login) with your desired Github account.
### 3. Log in to Hugging Face's CLI.
We'll add your Hugging Face token to Github secrets automatically with the token saved from running this command.
```bash
huggingface-cli login
```
### 4. Make your project 🚀
Now you can make a new project from this template like this:
```
cookiecutter https://github.com/nateraw/spaces-template
```
## Example
An example project generated from this template can be seen [here](https://github.com/nateraw/spaces-template-gradio).