Building LLM Applications w/Gradio

17 Jul 2024 · 57 min
57:21

In this live webinar, Gradio engineer Freddie demonstrates how to build a full‑featured chatbot UI with only about 50 lines of Python, covering streaming responses, integration with the Hugging Face inference API, and local Transformer models. He explains Gradio’s AI‑first design, its high‑level Blocks API, and the minimal code needed to create multimodal interfaces (text, images, audio, video) using components like the multimodal textbox and examples. The session compares Gradio to competing UI frameworks (Streamlit, Shiny, Dash, Voilà, Flask) and highlights Gradio’s advantages: built‑in API generation, easy Hugging Face deployment (ZeroGPU), performance features such as queuing, batching, and load‑balancing for production workloads. Freddie walks through the library’s architecture—Python component definitions, preprocessing/post‑processing methods, and the Svelte‑based JavaScript front‑end—showing how custom components and the CLI enable extensibility. He discusses authentication options (Gradio’s simple auth, Hugging Face OAuth, Google OAuth) and the upcoming Gradio Lite that runs entirely in the browser via Pyodide, enabling server‑less demos and integration with Transformers.js. The Q&A covers multimodal streaming, custom component galleries (PDF viewer, molecule viewer, leaderboard), contribution guidelines, and future roadmap items: agent‑centric demos, WebRTC‑based real‑time streaming, dynamic declarative UI with `gr.render`, and broader component ecosystems. The talk ends with community resources (Hugging Face Discord, issue tracker) and Freddie’s excitement about upcoming features.

Chapters

More from Hamel

0:31
youtube.com

Not Every Bug Needs an Eval

3d ago
47:59
youtube.com

Can Claude Build Your Evals?

3d ago
0:46
youtube.com

How to Get Your Team to Care About Evals

4d ago
12:47
youtube.com

7 Most Common AI Eval Mistakes (From Teaching 5K+ Engineers & PMs)

4d ago
40:01
youtube.com

How To Test AI Agents With Simulations

5d ago
0:43
youtube.com

Why Your LLM Judge Should Say Pass or Fail, Not 1 to 5

1w ago
0:39
youtube.com

Don't Just Slap a Chatbot on Your Product

1w ago
19:56
youtube.com

Is Opus 5.5 Better At Writing?

1w ago
1:22
youtube.com

How to Do Error Analysis When You Can't Look at the Data

1w ago
13:24
youtube.com

I Ranked Every AI Eval Concept From Worst to Best

1w ago
0:38
youtube.com

Why We Tell People to Read 100 Traces

1w ago
See all content