You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-deploy-and-where.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ The following code shows how to connect to an Azure Machine Learning workspace b
53
53
54
54
When using the CLI, use the `-w` or `--workspace-name` parameter to specify the workspace for the command.
55
55
56
-
+**Using VS Code**
56
+
+**Using Visual Studio Code**
57
57
58
-
When you use VS Code, you select the workspace by using a graphical interface. For more information, see [Deploy and manage models](tutorial-train-deploy-image-classification-model-vscode.md#deploy-the-model) in the VS Code extension documentation.
58
+
When you use Visual Studio Code, you select the workspace by using a graphical interface. For more information, see [Deploy and manage models](tutorial-train-deploy-image-classification-model-vscode.md#deploy-the-model) in the Visual Studio Code extension documentation.
59
59
60
60
## <aid="registermodel"></a> Register your model
61
61
@@ -114,9 +114,9 @@ The code snippets in this section demonstrate how to register a model from a tra
114
114
115
115
The `--asset-path` parameter refers to the cloud location of the model. In this example, the path of a single fileis used. To include multiple files in the model registration, set`--asset-path` to the path of a folder that contains the files.
116
116
117
-
+**Using VS Code**
117
+
+**Using Visual Studio Code**
118
118
119
-
Register models using any model files or folders by using the [VS Code](tutorial-train-deploy-image-classification-model-vscode.md#deploy-the-model) extension.
119
+
Register models using any model files or folders by using the [Visual Studio Code](tutorial-train-deploy-image-classification-model-vscode.md#deploy-the-model) extension.
120
120
121
121
### Register a model from a local file
122
122
@@ -171,7 +171,7 @@ For an E2E example which shows how to use multiple models behind a single contai
171
171
172
172
To deploy the model as a service, you need the following components:
173
173
174
-
***Define inference environment**. This environment encapsulates the dependencies required to run your model for inference
174
+
***Define inference environment**. This environment encapsulates the dependencies required to run your model for inference.
175
175
***Define scoring code**. This script accepts requests, scores the requests by using the model, and returns the results.
176
176
***Define inference configuration**. The inference configuration specifies the the environment configuration, entry script, and other components needed to run the model as a service.
177
177
@@ -936,7 +936,7 @@ After you download the model, use the `docker images` command to list the local
936
936
937
937
```text
938
938
REPOSITORYTAGIMAGEIDCREATEDSIZE
939
-
myworkspacef78fd10.azurecr.io/package 201908221813387ff48015d5bd4 minutes ago 1.43GB
939
+
myworkspacef78fd10.azurecr.io/package 201908221813387ff48015d5bd4 minutes ago 1.43GB
940
940
```
941
941
942
942
To start a local container based on this image, use the following command to start a named container from the shell or command line. Replace the `<imageid>` value with the image ID returned by the `docker images` command.
@@ -983,8 +983,8 @@ To verify that the image is built, use the `docker images` command. You should s
983
983
984
984
```text
985
985
REPOSITORYTAGIMAGEIDCREATEDSIZE
986
-
<none><none>2d5ee0bf3b3b49 seconds ago 1.43GB
987
-
myimage latest 739f22498d643 minutes ago 1.43GB
986
+
<none><none>2d5ee0bf3b3b49 seconds ago 1.43GB
987
+
myimage latest 739f22498d643 minutes ago 1.43GB
988
988
```
989
989
990
990
To start a new container based on this image, use the following command:
@@ -1093,7 +1093,7 @@ def run(request):
1093
1093
1094
1094
### Cross-origin resource sharing (CORS)
1095
1095
1096
-
Cross-origin resource sharing is a way to allow resources on a web page to be requested from another domain. CORS works via HTTP headers sent with the client request and returned with the service response. For more information on CORSand valid headers, see [Cross-origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) in Wikipedia.
1096
+
Cross-origin resource sharing is a way to allow resources on a webpage to be requested from another domain. CORS works via HTTP headers sent with the client request and returned with the service response. For more information on CORSand valid headers, see [Cross-origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) in Wikipedia.
1097
1097
1098
1098
To configure your model deployment to support CORS, use the `AMLResponse`classin your entry script. This class allows you to set the headers on the response object.
0 commit comments