|
1 | 1 | [//]: # (Image References) |
2 | 2 | [image0]: ./screenshots/MLOps_proj3_tree.PNG "proj3 structure" |
3 | | -[image1]: ./screenshots/MLOps_proj3_FastAPI_gitHubPrecommitHook.PNG "github action" |
| 3 | +[image1]: ./screenshots/continuous_deployment.png "github action" |
4 | 4 | [image2]: ./plots/numFeats_outlierDist_sex_boxplot.png "feat dist by sex plot" |
5 | 5 | [image3]: ./plots/general_dist_age-hoursPerWeek_boxplot.png "hours-per-week by age boxplots" |
6 | 6 | [image4]: ./plots/salary_dist_hoursPerWeek-age-sex_plot.png "salary dist by age sex plot" |
7 | 7 | [image5]: ./plots/capitalGain_dist_age-hoursPerWeek-sex_plot.png "capital gain dist by hours-per-week sex" |
8 | 8 | [image6]: ./plots/sex_plot.png "sex plot" |
9 | 9 | [image7]: ./screenshots/education-group_people-count.PNG "education people count" |
10 | 10 | [image8]: ./plots/eduLevel_dist_age-race_plot.png "education level grouping by age race" |
11 | | -[image9]: ./screenshots/MLOps_proj3_FastAPI_docsPredictPersonIncomeNegativeExample.PNG "fastapi income negative" |
| 11 | +[image9]: ./screenshots/example.PNG "fastapi income negative" |
12 | 12 | [image10]: ./screenshots/MLOps_proj3_FastAPI_docsPredictPersonIncomeNegativeExample_ResponseCode.PNG "fastapi income negative response" |
13 | | -[image11]: ./screenshots/render_createNewWebService.PNG "render web service" |
14 | | -[image12]: ./ |
15 | | -[image13]: ./ |
16 | | -[image14]: ./ |
| 13 | +[image11]: ./screenshots/MLOps_proj3_Render_createNewWebService.PNG "render web service" |
| 14 | +[image12]: ./screenshots/MLOps_proj3_Render_webservice_live.PNG "render web service life" |
| 15 | +[image13]: ./screenshots/MLOps_proj3_Render_webservice_live_test_status.PNG "render web service test" |
| 16 | +[image14]: ./screenshots/live_post.png "render web service script result" |
17 | 17 |
|
18 | 18 |
|
19 | 19 | # US Census Data - Creating and Deploying a Classifier Pipeline as Web Service |
@@ -123,9 +123,9 @@ There in "__main__" it calls |
123 | 123 | ``` |
124 | 124 |
|
125 | 125 | Remember, this code is for development purpose, in production the reload option shall be set to False resp. not used. In other words, the start command e.g. on our render deployment web service (see below) is:<br> |
126 | | -uvicorn src.main:app |
| 126 | +uvicorn src.main:app --host 0.0.0.0 --port 8000 |
127 | 127 |
|
128 | | -* So , we start the browser web application with |
| 128 | +* So, locally we start our implemented browser web application with |
129 | 129 |
|
130 | 130 | ``` |
131 | 131 | http://127.0.0.1:8000/docs |
@@ -156,6 +156,13 @@ As an examples regarding the use case of having a person earning <=50K as income |
156 | 156 | * Have in mind: if you rely on your CI/CD to fail before fixing an issue, it slows down your deployment. Fix issues early, e.g. by running an ensemble linter like flake8 locally before committing changes. |
157 | 157 | * For checking the render deployment, a python file exists that uses the httpx module to do one GET and POST on the live render web service and prints its results. |
158 | 158 |
|
| 159 | +On the Render web service site, |
| 160 | +![render web service life][image12] |
| 161 | +<br> |
| 162 | +![render web service test][image13] |
| 163 | +<br> |
| 164 | +![render web service script result][image14] |
| 165 | + |
159 | 166 |
|
160 | 167 | ## License |
161 | 168 | This project coding is released under the [MIT](https://github.com/IloBe/US_CensusData_Classifier_PipelineWithDeployment/blob/master/LICENSE.txt) license. |
0 commit comments