# Python for AI: Create AI Apps with Flask & OpenAI

Canonical URL: <https://www.nobledesktop.com/classes/ai-python>

## Overview

Harness the power of AI for web development. Whether you're looking to enhance your existing Python development skills or break into the world of AI-powered apps, this hands-on class is designed to equip you with the knowledge and tools you need to succeed, and have you confidently build dynamic web applications using the Flask framework.

You'll start by learning the basics of Flask, including how to set up your project, create routes, and render HTML templates. From there, you'll dive into web development essentials such as designing and styling your app with HTML and CSS, building forms for user input, and handling requests to make your app more interactive and user-friendly. But we don’t stop at the basics—this course takes your skills to the next level by integrating the OpenAI API into your Flask app. You'll learn how to make API calls for tasks like sentiment analysis, and display results dynamically in your web app. The class will also cover essential topics like error handling, debugging, and deploying your app. By the end of the course, you'll be able to create a smooth and successful Python development experience with AI integration.

## What you'll learn

- Set up Flask projects and create routes for web applications
- Handle GET and POST requests, and render HTML templates in Flask
- Configure and make OpenAI API requests for sentiment analysis tasks
- Design and style HTML forms, and apply CSS to your web apps
- Implement error handling and debug common issues in Flask applications
- Integrate AI models like GPT-4 into web applications using APIs

## Prerequisites

This course requires a basic to intermediate understanding of Python programming. Students without prior experience should first take our [Python for Data Science Bootcamp](/classes/python-data-science-bootcamp-nyc) or [Python Programming Bootcamp](/classes/python-programming-immersive).

## Curriculum

#### Introduction to Flask

- Overview of Flask and its use cases
- Setting up a Flask project
- Creating and running your first Flask app

#### Building the Web Application

- Designing the HTML structure and creating templates
- Styling the app with CSS
- Creating Flask routes for handling requests and rendering templates

#### Integrating the OpenAI API

- Setting up the OpenAI API and acquiring an API key
- Making API calls to perform sentiment analysis
- Parsing and displaying the API's results in your web app

#### Handling User Input

- Building forms in HTML to capture user input
- Processing form submissions in Flask
- Displaying dynamic content based on user input

#### Error Handling & Debugging

- Implementing error handling to catch and manage potential issues
- Debugging common errors and understanding Flask's error messages

#### Deploying & Testing

- Running the Flask app locally and testing its functionality
- Reviewing the complete workflow of submitting a comment and receiving sentiment analysis results

## Schedule
- Jun 1, 2026 – Jun 5, 2026 — NYC
- Aug 24, 2026 – Aug 28, 2026 — NYC
- Oct 7, 2026 – Oct 14, 2026 — NYC
- Nov 30, 2026 – Dec 4, 2026 — NYC

## Instructors

### Dan Rodney — School Director, Instructor, & Senior Course Developer

Dan Rodney has been a designer and web developer for over 20 years, creating coursework and leading innovative training initiatives at Noble Desktop. He teaches courses covering Figma, HTML & CSS, Adobe Photoshop, InDesign, Illustrator, and Power BI. Dan has also been at the forefront of integrating AI into design and business workflows, spearheading Noble Desktop’s latest AI course offerings. In addition to teaching and curriculum development, he writes custom scripts for InDesign (Make Book Jacket, Proper Fraction Pro, and more) and works with automation and AI-driven tools in his free time. You can find Dan on X (Twitter), LinkedIn, Facebook, and at danrodney.com.

Learn more about [Dan Rodney's](/dan-rodney) background and expertise.

### Garfield Stinvil — Senior Instructor

Garfield is an experienced software trainer with over 16 years of real-world professional experience. He started as a data analyst with a Wall Street real estate investment company & continued working in the professional development department at New York Road Runners Organization before working at Noble. He enjoys bringing humor to whatever he teaches and loves conveying ideas in novel ways that help others learn more efficiently.

Since starting his professional training career in 2016, he has worked with several corporate clients including Adobe, HBO, Amazon, Yelp, Mitsubishi, WeWork, Michael Kors, Christian Dior, and Hermès. 

Outside of work, his hobbies include rescuing & archiving at-risk artistic online media using his database management skills.

### Mourad Kattan — Program Director & Instructor

Mourad Kattan is an instructor and Program Director of Business, Finance, & Excel at Noble Desktop, teaching classes and designing courses in Excel, finance, accounting, and financial modeling.

Before Noble Desktop, Mourad worked as a financial analyst at Credit Suisse and H/2 Capital Partners. In those positions, he used advanced analytical and financial skills to evaluate a variety of investments.

Mourad graduated from the University of Pennsylvania summa cum laude and is part of the Beta Gamma Sigma honor society.

Learn more about [Mourad Kattan's](/mourad-kattan) background and expertise.

### Christophe Drayton — Instructor

Christophe is the instructor for the UX & UI Design Certificate, Figma Advanced, and Generative AI courses at Noble Desktop, and the founder and Chief Design Officer of Kaaiind, which specializes in Applied Artificial Intelligence in the Creative field.

With over 20 years in Branding, UX Design, and Accessibility across Europe and the US, Christophe has positively impacted the digital experience of a large spectrum of companies, ranging from big data to startups, government entities to nonprofits, both in the private and public sectors.

As an Educator, Christophe has led transformative and award-winning UX programs at Thinkful, the City University of New York (CUNY), and the Brooklyn Public Library, which have opened doors for underrepresented groups in tech who have secured roles at top companies like Google, Uber, Citi, and IBM. Most recently, he has developed innovative curricula about AI in the workplace for the University of Phoenix, LinkedIn Learning, and Coursera.

Today, he focuses on developing Allie, one of the first AI-powered, patent-pending color-blind safe and WCAG-compliant design system generator, while concluding his 5-year fundamental research on color vision deficiencies in digital environments.

Christophe believes in hands-on, practical application of human-centered strategy and ethical and inclusive design. He is passionate about sharing his knowledge to inspire and empower the next generation of designers, especially those entering the field through nontraditional paths.

## Pricing

**Tuition:** $1895
