Render: Upload Flask and Streamlit Project in Minutes.

Gaju Ahmed
3 min readJan 31, 2023
Fig: Render Home Page

Heroku is one of the best online Platforms for students or any kind of freelancer to live their Projects. Then what happened? Heroku declare they do not provide any kind of free hosting from Dec-22. That decision created a very bad impact on those who really utilize Heroku in a good way and also a bad way.

Render Comes to help that kind of community with free hosting. Render also has paid packages if you want then check out.

Fig: Their offered Plane

In this article, I will introduce you to how to upload any kind of Streamlit and Flask project free on Render. So let's begin the procedure without any further delay.

I divided this Paper into three Steps those are below:

  • Create an Account
  • Upload Project with Streamlit
  • Upload Project with Flask

Create An Account on Render:

It's an Easy peasy process to create an account for Render. User Can join with Github or any kind of mail. After completing the account just links to the account on your GitHub account.

Fig: Connection between Render & Github

Upload Project with Streamlit :

To upload the streamlit project on Render you have to upload that project to Github first with the requirements.txt file. This file contains all the used libraries' names on your projects.

Fig: Requirements.txt file Importance for project upload

To create your requirements.txt file just type that command on your project environment terminals- pip freeze > requirements.txt

Completing all these terms, Now time to send your project live. Click the link in the below box on the Render website.

Fig: Create a web Service page on Render

Then It took there in the below box, select connect to which project you wanna upload. I select my project with Olympic Data Visualization.

Fig: Select your git Project from Render

We are one step behind to upload our Streamlit project on Render.

Fig: Last page of Upload project on Render

On this page, everything is stated automatically but you just write one thing which is the start command streamlit run app.py . Its take some time to upload then provide a link on event section. By this link you can go your live page. check mine on this link:

Upload Project with Flask :

Everything is the same as Streamlit without one thing which is gunicorn.In your python project terminal used pip install gunicorn. After that, Create a requirements.txt file using the command mentioned above.

Fig: Last Interface of Flask Project Live system

After all this procedure in the Strart command write gunicorn app:app instead of streamlit run app.py. Same as streamlite it will build & deploy project then give an url which take you on your website as mine on flask- check the link

Wuff…Finally, After so many months, I complete my second blog post on medium, for this reason, I want to thank myself:-D. If any queries regarding this post then feel free to comment.

--

--

Gaju Ahmed

Passionate about Machine Learning | Computer vision | Deep Learning