Skip to content

Commit a596757

Browse files
authored
Wrong variable name in the sample code
Due to different variable name, sample codes doesn't run. Need to change variable name to 'inference_config' which is the same name from the notebook sample.
1 parent da2c548 commit a596757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ python_packages = ['nltk', 'numpy', 'onnxruntime']
269269
for package in python_packages:
270270
env.python.conda_dependencies.add_pip_package(package)
271271

272-
inf_config = InferenceConfig(environment=env, source_directory='./source_dir', entry_script='./score.py')
272+
inference_config = InferenceConfig(environment=env, source_directory='./source_dir', entry_script='./score.py')
273273
```
274274

275275
For more information, see the documentation for [LocalWebservice](/python/api/azureml-core/azureml.core.webservice.local.localwebservice), [Model.deploy()](/python/api/azureml-core/azureml.core.model.model#deploy-workspace--name--models--inference-config-none--deployment-config-none--deployment-target-none--overwrite-false-), and [Webservice](/python/api/azureml-core/azureml.core.webservice.webservice).

0 commit comments

Comments
 (0)