Beginner1h9m

Building Machine Learning Demos with Gradio

Instructor: Apolinário Passos

Hugging Face logo

Earn an accomplishment with PRO · Updated Oct 7, 2025

  • Beginner
  • 1h9m
  • 7 Video Lessons
  • 5 Code Examples
  • 2 Graded Assignments PRO
  • Earn an accomplishment with PRO
  • Updated Oct 7, 2025
  • Instructor: Apolinário Passos
  • Hugging FaceHugging Face
  • Learn more aboutMembership PRO Plan

What you'll learn

  • Learn how to create and demo machine learning applications quickly.

  • Build your own image generation, image captioning, and text-summarization apps.

  • Share your app with teammates, beta testers, and more on Hugging Face Spaces.

Course recap

PRO

Built in partnership with Hugging Face and taught by Apolinario Passos (Poli), this course teaches how to use Gradio to quickly build user interfaces for generative AI applications directly in Python, without any frontend or JavaScript code. Students build demos for text summarization, named entity recognition, image captioning, image generation with diffusion models, and LLM-based chatbots.

Concept map

Concepts in Building Machine Learning Demos with Gradio and the courses that connect to themBuilding Generative AI Applications with GradioBuilding Generative AI Ap…GradioRapid demo buildingText generation interfacesImage generation interfacesImage generation interfac…Sharing and feedbackFast Prototyping of GenAI Apps with StreamlitFast Prototyping of GenAI…Generative AI for EveryoneEvaluating and Debugging Generative AIEvaluating and Debugging…Concepts in Building Machine Learning Demos with Gradio and the courses that connect to themBuilding Generative AI Applications with GradioBuilding Genera…GradioRapid demo buildingRapid demo buil…Text generation interfacesText generation…Image generation interfacesImage generatio…Sharing and feedbackSharing and fee…

Key concepts

  • GradioPython library for creating web-based ML model interfaces without frontend code
  • Rapid demo buildingGoing from trained model to interactive demo in minutes
  • Text generation interfacesBuilding UIs for summarization, NER, and chatbot applications
  • Image generation interfacesBuilding UIs for diffusion model-powered image generation
  • Sharing and feedbackMaking demos accessible for gathering user feedback

About this course

Join our new short course, Building Generative AI Applications with Gradio! Learn from Apolinário Passos, Machine Learning Art Engineer at Hugging Face.

What you’ll do:

  • With a few lines of code, create a user-friendly app (usable for non-coders) to take input text, summarize it with an open-source large language model, and display the summary.
  • Create an app that allows the user to upload an image, which uses an image to text (image captioning) to describe the uploaded image, and display both the image and the caption in the app.
  • Create an app that takes text and generates an image with a diffusion model, then displays the generated image within the app.
  • Combine what you learned in the previous two lessons: Upload an image, caption the image, and use the caption to generate a new image.
  • Create an interface to chat with an open source LLM using Falcon, the best-ranking open source LLM on the Open LLM Leaderboard.

By the end of the course, you’ll gain the practical knowledge to rapidly build interactive apps and demos to validate your project and ship faster

Who should join?

Anyone who has basic Python knowledge and wants to learn to quickly build and share apps and demos using Gradio!

Course Outline

7 Lessons・5 Code Examples
Unlock certificates

Elevate your learning experience with Pro

Upgrade to Pro and gain unlimited accomplishments on your resume

Learn More

Instructor

Apolinário Passos

Apolinário Passos

Machine Learning Art Engineer at Hugging Face

Course access is free for a limited time during the DeepLearning.AI learning platform beta!

Want to learn more about Generative AI?

Keep learning with updates on curated AI news, courses, events, as well as Andrew’s thoughts from DeepLearning.AI!