You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
}
The text was updated successfully, but these errors were encountered:
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."
}
The text was updated successfully, but these errors were encountered: