File size: 235 Bytes
d657608
 
 
3479dfb
d657608
 
 
 
1
2
3
4
5
6
7
8
9
import requests

url = "http://localhost:8000/predict"
data = {"text": "I need to add 100$ to my bank account."}

response = requests.post(url, json=data)
print("Status code:", response.status_code)
print("Response:", response.json())