We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4adc0 commit 4d925b3Copy full SHA for 4d925b3
articles/machine-learning/batch-inference/how-to-image-processing-batch.md
@@ -66,13 +66,13 @@ Batch Endpoint can only deploy registered models so we need to register it. You
66
67
```python
68
import os
69
- import requests
+ import urllib.request
70
from zipfile import ZipFile
71
72
- requests.get('https://azuremlexampledata.blob.core.windows.net/data/imagenet/model.zip', allow_redirects=True)
+ response = urllib.request.urlretrieve('https://azuremlexampledata.blob.core.windows.net/data/imagenet/model.zip', 'model.zip')
73
74
os.mkdirs("imagenet-classifier", exits_ok=True)
75
- with ZipFile(file, 'r') as zip:
+ with ZipFile(response[0], 'r') as zip:
76
model_path = zip.extractall(path="imagenet-classifier")
77
```
78
0 commit comments