Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created November 11, 2022 23:31
Show Gist options
  • Save ahmedbesbes/d0c310b3d0e2379135bb0e50a89c9fe1 to your computer and use it in GitHub Desktop.
Save ahmedbesbes/d0c310b3d0e2379135bb0e50a89c9fe1 to your computer and use it in GitHub Desktop.
import requests
requests.post(
"http://127.0.0.1:3000/classify",
headers={"content-type": "application/json"},
data="[[5.9, 3, 5.1, 1.8]]"
).text
'[2]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment