Line Plots in Gradio

Learn how to visualize data in Gradio by creating a line chart and displaying it in the application.

The LinePlot component

In this chapter, we will be exploring how to visualize our data in Gradio. Let’s get started!

We can create line plots using the component LinePlot. This is relatively straightforward, and it expects a pandas DataFrame, from which it will create a line plot in Gradio. A LinePlot can be instantiated with gr.LinePlot() or with Interface string shortcut ‘lineplot’.

It is worth noting that unlike most components we have seen so far, a LinePlot component can not be passed as input into a ...

Access this course and 1400+ top-rated courses and projects.