Skip to content

Instantly share code, notes, and snippets.

@biranchi2018
Created November 30, 2023 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biranchi2018/de5b17f2675d45c7be3ee1f09af3883f to your computer and use it in GitHub Desktop.
Save biranchi2018/de5b17f2675d45c7be3ee1f09af3883f to your computer and use it in GitHub Desktop.
POST Requests
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