Gradio: building and sharing model demos
Turn a Python model into a shareable web demo without writing HTML, CSS or JavaScript.
Course Duration: 3h
What You'll Learn
- Wrap a Python function into an
Interfaceand let Gradio pick the right widgets. - Handle images, audio and video with the correct data shapes and formats.
- Compose custom layouts and wire up events with
gr.Blocks. - Ship a chat assistant with streaming responses and a system prompt.
- Add prefilled examples, caching, a queue and a temporary share link.
- Publish the demo to a Hugging Face Space with secrets and hardware.
Prerequisites
- Python (course 02) at the level of writing small functions and using virtual environments.
- A model you want to demo: an image classifier (course 10), an audio pipeline (courses 13 or 16), or a language model (course 29). Any callable Python function will do.
Course Modules
- Interface: inputs, outputs, function
- Text, image, audio and video components
- Blocks: layout and events
- Chat interfaces
- Streaming responses
- Prefilled examples and caching
- Queue and concurrent load
- Temporary share link
- Publishing to a Hugging Face Space
- Project: a language model demo
Assessment and certificate
The course ends with a 40-question exam covering every module. On success, a certificate of completion is issued; its number is verifiable on the platform.
Free courses, by contrast, end with a 5-question quiz and a preview of the certificate, without certification.