Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2021 21:12
What would you like to do?
import requests
def get_predictions(carat_weight, cut, color, clarity, polish, symmetry, report):
url = 'http://localhost:8000/predict?carat_weight={carat_weight}&cut={cut}&color={color}&clarity={clarity}&polish={polish}&symmetry={symmetry}&report={report}'\
.format(carat_weight = carat_weight, cut = cut,\
color = color, clarity = clarity, polish = polish, symmetry = symmetry, report = report)
x =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment