How Gradio Turbocharges your Machine Learning Team

Original article was published by Abubakar Abid on Artificial Intelligence on Medium


So how can businesses make the most of Gradio’s tools? Here are three use cases that we see.

Use Case 1: Immediate feedback from domain experts

As machine learning developers, we often create models to make predictions in specialized domains, such as medicine or finance. As we build models, we seek feedback from domain experts to ensure that the models are making sensible predictions on the full distribution of data.

Kexin Huang from Harvard uses Gradio to build interfaces where his collaborators can test drug-target interaction prediction models

At a leading public biotech company, the senior machine learning engineer recognized the potential that Gradio provides in accelerating this kind of feedback. Before using Gradio, the machine learning engineers and chemists would have regular lengthy Zoom calls to discuss which molecules the model was correctly predicting as toxic, and which molecules were being incorrectly flagged.

Rather than scheduling weekly video conferencing, and gathering iterative feedback over the course of several months, the company realized that Gradio would allow the ML developer to easily create a GUI that the chemists on the team could use to interact with the model and instantaneously flag anomalous predictions.

(By the way, this use case was the original motivation behind Gradio, as a tool for streamlining academic collaborations between ML researchers and radiologists. This has led to several peer-reviewed publications featuring Gradio.)

Use case 2: Streamline engineer-product communication

The design of a machine learning system, particularly which features to use as inputs and outputs, is not just a decision taken by the engineers on the ML team. Usually, the product team will provide feedback based on customer interviews. To provide this feedback, the product team will need access to the model in a way that they can use it without having to write code.

Areeba Abid, a software engineer on Google’s Android SDK team, sees the value in using Gradio for internal demos and product decisions.

ML engineers will often spend lots of time creating demos and hacking together systems to gather feedback. Instead of reinventing the wheel, use Gradio’s ready-to-use UIs.

As Areeba Abid, a software engineer at Google’s Android SDK team, noted that Gradio can save teams that evaluate machine learning models in conjunction with product managers tremendous amounts of time. Similarly, a director of artificial intelligence at Cisco is using Gradio across his teams to save them effort in creating demos for product decisions.

Use case 3: Create customer & sales demos

Gradio is just as useful for external demos as it is internal ones. Whether you’re a consulting company making demos for corporate clients, or an applied machine learning company creating an app for end customers, you can help close the sale by creating GUIs that let your customers immediately see value in your model. Rather than spending many months hiring a front-end engineer and a deployment engineer, Gradio lets your ML developer create this demo in under a minute.

You can also create GUIs that compare models, like in this image recognition model above. You can use this to showcase the key differences between your models, or demonstrate how your model is better than the competition, and close that sale!