Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

test.py 244 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. import requests
  2. new_measurement = {
  3. 'sepal_length': 5.7,
  4. 'sepal_width': 4.1,
  5. 'petal_length': 3.9,
  6. 'petal_width': 2.2
  7. }
  8. response = requests.post('http://127.0.0.1:8000/predict', json=new_measurement)
  9. print(response.content)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...