Spaces:
Running
Running
File size: 272 Bytes
941ed08 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import requests
url = "https://afrac-ncm-demo.hf.space/api/predict"
payload = {
"data": ["Coca-Cola PET 2l"]
}
headers = {
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
result = response.json()
print(result) |