Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while passing the post request with data with the api #2

Open
umairnsr87 opened this issue Nov 22, 2019 · 0 comments
Open

Issue while passing the post request with data with the api #2

umairnsr87 opened this issue Nov 22, 2019 · 0 comments

Comments

@umairnsr87
Copy link

I am following your videos and I have loaded the model from my windows machine by the following command:
#loading the model
mdl=joblib.load("C:/Users/umairansari/Pictures/Downloads/loan_model.pkl")
scalars=joblib.load("C:/Users/umairansari/Pictures/Downloads/Scalars.pkl")

The data I am passing for the post request:
{
"Dependents": 1,
"ApplicantIncome": 4500,
"CoapplicantIncome": 1500,
"LoanAmount": 1285,
"Loan_Amount_Term": 360,
"Credit_History": 1,
"Gender_Female": 0,
"Gender_Male": 1,
"Married_Yes": 1,
"Married_No": 0,
"Education_Graduate": 0,
"Education_Not_Graduate": 1,
"Self_Employed_No": 0,
"Self_Employed_Yes":1,
"Property_Area_Rural": 1,
"Property_Area_Semiurban": 0,
"Property_Area_Urban": 0,

}

The error I am getting is below
{
"detail": "Unsupported media type "text/plain" in request."
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant