Hugging Face
Learn how to deploy Flowise on Hugging Face
Create a new space
Sign in to Hugging Face
Start creating a new Space with your preferred name.
Select Docker as Space SDK and choose Blank as the Docker template.
Select CPU basic ∙ 2 vCPU ∙ 16GB ∙ FREE as Space hardware.
Click Create Space.
Set the environment variables
Go to Settings of your new space and find the Variables and Secrets section
Click on New variable and add the name as
PORT
with value7860
Click on Save
(Optional) Click on New secret
(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
At the files tab, click on button + Add file and click on Create a new file (or Upload files if you prefer to)
Create a file called Dockerfile and paste the following:
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