Writing More Production-Ready Data Science Project (Part 2): Creating a Web App with Streamlit and Deploying to Google Cloud Run with Docker

Joshua Phuong Le
11 min readFeb 28, 2023
Photo by Venti Views on Unsplash

1. Introduction

In part 1 article, I outlined the refactoring of the previous Yelp review classification project to a proper project structure that should be much easier to maintain and distribute. In this article, I will go through steps to build a simple Streamlit web app to let users input a review text, and obtain the predicted star-rating. We will test the app locally before containerizing it with Docker and deploy it on Google Cloud Run to share with the world.

You can find the project codes below:

2. Building a Simple Front End with Streamlit

Streamlit is an open-source Python library that let users build web applications quickly without any knowledge of common web development frameworks such as JavaScript, HTML or CSS. Hence it has gained popularity recently amongst data scientists who want to share their products quickly…

--

--

Joshua Phuong Le

I’m a data scientist having fun writing about my learning journey. Connect with me at https://www.linkedin.com/in/joshua3112/