About this Course
This mini course is intended to apply basic Python skills for developing Artificial Intelligence (AI) enabled applications. In this hands-on project you will assume the role of a developer and perform tasks including:
- Develop functions and application logic
- Exchange data using Watson AI libraries
- Write unit tests, and
- Package the application for distribution.
You will demonstrate your foundational Python skills by employing different techniques to develop web applications and AI powered solutions. After completing this course, you will have added another project to your portfolio and gained the confidence to begin developing AI enabled applications using Python and Flask, Watson AI libraries, build and run unit tests, and package the application for distribution out in the real world.
Task1: Clone the project repository (1 point)
Repository folder structure
Task 2: Create an emotion detection application using Watson NLP library (2 points)
Write code for the application function
Import the application without errors
Task 3: Format the output of the application (2 points)
Modify the emotion_predictor function accurately for it to return the provided output format
Check that the output format is accurate
Task 4: Package the application (2 points)
Create the folder structure for packaging the application and create the init.py file
Verify that the output is as expected
Task 5: Run Unit tests on your application (2 points)
Create the required unit tests
Run user tests until all pass
Task 6: Web deployment of the application using Flask (2 points)
Update server.py with the right contents
Deploy the application
Task 7: Incorporate Error handling (3 points)
Update the emotion_detector function for status code, 400
Update the server.py file to manage blank input errors
Validate error handling functionality
Task 8: Run static code analysis (2 points)
Update the server.py to highlight the code that gets 10/10
Get a perfect score for static code analysis