Module 03 · Creating AI Application and Deploy using Flask
Graded Assignment: Submit Your Work and Grade Your Peers评分作业:提交你的作品并评分你的同伴
Here you are! 这里就是!
You have completed all tasks in the final project. This project is worth 50% of your final grade.
你已经完成了最终项目的所有任务。这个项目占你最终成绩的 50%。
You need to submit the artifacts (screenshots) that will be graded by your peers, who are also completing this assignment within the same session.
你需要提交将被同伴评定的工件(截图),他们也在同一时段内完成这个作业。
Review the Grading Criteria section to ensure you have completed all requirements.
请查看评分标准部分,以确保你已经完成了所有要求。
After confirming, you can submit your responses for peer review.
确认后,您可以提交您的答案供同行评审。
评分标准概述
Here is a summary of the activities within each Task and the total points for each Task.
以下是每个任务中的活动摘要以及每个任务的总分。
**Note: **You will need to provide clear screenshots for each of the activities mentioned below for grading.
注意:您需要为下面提到的每个活动提供清晰的截图以便评分。
Total Points: 16 总分:16
Task1: Clone the project repository (1 point)
任务 1:克隆项目仓库(1 分)
- Repository folder structure
仓库文件夹结构

Task 2: Create an emotion detection application using Watson NLP library (2 points)
任务 2:使用 Watson NLP 库创建一个情绪检测应用程序(2 分)
- Write code for the application function
编写应用程序功能的代码

- Import the application without errors
在无错误的情况下导入应用程序

Task 3: Format the output of the application (2 points)
任务 3:格式化应用程序的输出(2 分)
- Modify the emotion_predictor function accurately for it to return the provided output format
准确修改 emotion_predictor 函数,使其返回提供的输出格式

- Check that the output format is accurate
检查输出格式是否准确

Task 4: Package the application (2 points)
任务 4:打包应用程序(2 分)
- Create the folder structure for packaging the application and create the init.py file
创建应用程序的打包文件夹结构并创建__init__.py 文件

- Verify that the output is as expected
验证输出是否符合预期

Task 5: Run Unit tests on your application (2 points)
任务 5:在您的应用程序上运行单元测试(2 分)
- Create the required unit tests
创建所需的单元测试

- Run user tests until all pass
运行用户测试直至全部通过

Task 6: Web deployment of the application using Flask (2 points)
任务 6:使用 Flask 进行应用程序的 Web 部署(2 分)
- Update
server.pywith the right contents
更新server.py文件以包含正确的内容

- Deploy the application 部署应用程序

Task 7: Incorporate Error handling (3 points)
任务 7:整合错误处理(3 分)
- Update the emotion_detector function for status code, 400
更新 emotion_detector 函数以处理状态码 400

- Update the
server.pyfile to manage blank input errors
更新server.py文件以管理空白输入错误

- Validate error handling functionality
验证错误处理功能

Task 8: Run static code analysis (2 points)
任务 8:运行静态代码分析(2 分)
- Update the
server.pyto highlight the code that gets 10/10
更新server.py以突出显示获得 10/10 的代码

- Get a perfect score for static code analysis
获得静态代码分析的完美分数
