Build an AI web app to translate text with Flask

Learn module

Build an AI web app by using Python and Flask

Pre-Learning

Prerequisites

What students will learn

Have you ever wanted to incorporate artificial intelligence into a website? Do you want to be able to translate text in your web apps? With Cognitive Services and Flask you can create a website to translate text with a small amount of code.

(Screenshot of final project

Workshop flow

Setup your environment

Attendees will start by configuring their environments. They will install the necessary tooling, create the folder for their project, and setup the necessary Python libraries.

Create the app

After setting up the environment, attendees will create the project. They will create the template for the landing page and test their application is running correctly.

Create the Translator service

Once the project is up and running, the attendee will create the necessary services on Azure. They'll obtain the necessary keys to call the service, and properly store them in a .env file.

Call the service from the app

To close out the workshop, attendees will add the code to call the Translator service. They'll finish by testing their application and seeing text translated in their app!

Next steps

Checkout more resources

Click Here