CoolFace
Apppublic

Jeevan-30042005/iris_species

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
test_api.py20 linesDownload Raw Back to root
1import requests2import json3 4url = "http://127.0.0.1:5000/predict"5data = {6    "sequences": [7        [1.0, 3],8        [1.0, 2],9        [1.0, 3]10    ]11}12 13print(f"Sending request to {url}...")14try:15    response = requests.post(url, json=data)16    print("Status Code:", response.status_code)17    print("Response JSON:", response.json())18except Exception as e:19    print("Error:", e)20