Hugging Face

Learn how to deploy Flowise on Hugging Face


Create a new space

  1. Sign in to Hugging Face

  2. Start creating a new Space with your preferred name.

  3. Select Docker as Space SDK and choose Blank as the Docker template.

  4. Select CPU basic βˆ™ 2 vCPU βˆ™ 16GB βˆ™ FREE as Space hardware.

  5. Click Create Space.

Set the environment variables

  1. Go to Settings of your new space and find the Variables and Secrets section

  2. Click on New variable and add the name as PORT with value 7860

  3. Click on Save

  4. (Optional) Click on New secret

  5. (Optional) Fill in with your environment variables, such as database credentials, file paths, etc. You can check for valid fields in the .env.example here

Create a Dockerfile

  1. At the files tab, click on button + Add file and click on Create a new file (or Upload files if you prefer to)

  2. Create a file called Dockerfile and paste the following:

  1. Click on Commit file to main and it will start to build your app.

Done πŸŽ‰

When the build finishes you can click on the App tab to see your app running.

Last updated