Created
November 30, 2023 03:35
-
-
Save biranchi2018/de5b17f2675d45c7be3ee1f09af3883f to your computer and use it in GitHub Desktop.
POST Requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST Requests : | |
=================== | |
import requests | |
url = 'https://clothing-model.default.kubeflow.mlbookcamp.com/v1/models/clothing-model:predict' | |
data = { | |
"instances": [ | |
{"url": "http://bit.ly/mlbookcamp-pants"}, | |
] | |
} | |
response = requests.post(url, json=data) | |
result = response.json() | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment