Skip to content

Commit 8697abd

Browse files
authored
Merge pull request #113016 from Blackmist/fixing
code snippet
2 parents ad982d4 + 540c55b commit 8697abd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/machine-learning/how-to-deploy-and-where.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: conceptual
99
ms.author: jordane
1010
author: jpe316
1111
ms.reviewer: larryfr
12-
ms.date: 02/27/2020
12+
ms.date: 04/28/2020
1313

1414
ms.custom: seoapril2019
1515
---
@@ -1140,11 +1140,13 @@ To configure your model deployment to support CORS, use the `AMLResponse` class
11401140
The following example sets the `Access-Control-Allow-Origin` header for the response from the entry script:
11411141

11421142
```python
1143+
from azureml.contrib.services.aml_request import AMLRequest, rawhttp
11431144
from azureml.contrib.services.aml_response import AMLResponse
11441145

11451146
def init():
11461147
print("This is init()")
11471148

1149+
@rawhttp
11481150
def run(request):
11491151
print("This is run()")
11501152
print("Request: [{0}]".format(request))

0 commit comments

Comments
 (0)