SaherMuhamed's picture
add the fine tuned BERT model with FAST API integrated in the Flask app
3479dfb
raw
history blame contribute delete
235 Bytes
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())