|
1 | 1 | # Save the face details to a database
|
2 | 2 |
|
3 |
| -In the [previous step](./AnalyseThePhotoUsingAI.md) you analyzed the image for faces using AI, checking each face for emotion. In this step you will save the results of the analysis into a database. |
| 3 | +In the [previous step](./AnalyseThePhotoUsingAI.md) you analyzed the image for faces using AI, checking each face for emotion. In this step you will create a Cosmos DB collection, and save the results of the analysis into this collection. |
4 | 4 |
|
5 | 5 | ## Cosmos DB account
|
6 | 6 |
|
@@ -114,26 +114,6 @@ There is a Cosmos DB client available as a Python package.
|
114 | 114 |
|
115 | 115 | * Save the file
|
116 | 116 |
|
117 |
| -## Deploy the code |
118 |
| -
|
119 |
| -* Open the command palette: |
120 |
| - * On Windows, press Ctrl+Shift+P |
121 |
| - * On MacOS, press Cmd+Shift+P |
122 |
| -
|
123 |
| -* Select *Azure App Service: Deploy to Web App...* |
124 |
| - |
125 |
| -  |
126 |
| -
|
127 |
| -* A dialog will pop up asking if you want to overwrite the existing deployment. Select the **Deploy** button. |
128 |
| - |
129 |
| -  |
130 |
| -
|
131 |
| -* A popup will appear showing the deployment progress. You can monitor the progress from the *Output* window by selecting *View -> Output* and selecting *Azure App Service* from the window selector. |
132 |
| - |
133 |
| -  |
134 |
| -
|
135 |
| -* Open the web site in your browser to verify that everything is working correctly. |
136 |
| -
|
137 | 117 | ## What does this code do
|
138 | 118 |
|
139 | 119 | The overall flow of this code is:
|
@@ -177,4 +157,4 @@ The `doc` object contains the face information, and it is inserted into the coll
|
177 | 157 |
|
178 | 158 | ## Next steps
|
179 | 159 |
|
180 |
| -In this step you created a Cosmos DB collection, and saved the results of the analysis into a database. In the [next step](./ReturnTheEmotionCount.md) you will return the count of each emotion from this Web Api. |
| 160 | +In this step you created a Cosmos DB collection, and saved the results of the analysis into this collection. In the [next step](./ReturnTheEmotionCount.md) you will return the count of each emotion from this Web Api. |
0 commit comments