fast-api-demo / test.py
Antoine KRAJNC
remove __main__ part
082f61a
raw
history blame contribute delete
243 Bytes
import requests
payload = {
"title": "This is my great blog title",
"content": "This is the body of my article",
"Author": "Jaskier"
}
r = requests.post("http://localhost:7860/predict", json={
"YearsExperience": 0
})
print(r.content)