Using Gradio To Create Apps For Your Machine Learning Models

Another low code framework to build a friendly User Interface for your Machine Learning models.

Zoumana Keita
Geek Culture

--

Photo by Luca Bravo on Unsplash

Introduction

When building Machine Learning models, we might want to play with them in order to simulate their behavior in the production environments. This step requires most of the time, the development of a User interface. The quicker the development process, the less time you will spend questioning how to improve your models.

Here comes Gradio, a fast and low code tool for creating demos for your machine learning models with friendly UI. Also, it uses FastAPI server under the hood, which makes it faster.

Gradio — Get Started

This section aims to provide you with a better understanding of Gradio, by building a sentiment classification application. Our end UI will have the following sections:

  • The headlineof the application.
  • The image (Gradio logo) loaded from a web URL.
  • The submissionbuttonthat triggers the prediction function once clicked.

Let’s start by installing and importing the library:

--

--

Zoumana Keita
Geek Culture

Senior Data Scientist/IT Analyst @OXY || Videos about AI, Data Science, Programming & Tech 👉 https://www.youtube.com/@techwithzoum