Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -416,7 +416,7 @@ def loan(Gender, Married, Dependents, Education, Self_Employed, ApplicantIncome,
|
|
416 |
#reshaping into 2D array
|
417 |
instance_resh = instance.reshape(1,-1)
|
418 |
new_instance_resh = scaler.transform(instance_resh)
|
419 |
-
new_instance_resh = np.delete(new_instance_resh, [5,6,7,8,9,10], axis=
|
420 |
prediction = logisticRegr.predict(scaler.transform(new_instance_resh))
|
421 |
|
422 |
return ("Loan approved" if prediction[0] == 1 else "Loan not approved")
|
|
|
416 |
#reshaping into 2D array
|
417 |
instance_resh = instance.reshape(1,-1)
|
418 |
new_instance_resh = scaler.transform(instance_resh)
|
419 |
+
new_instance_resh = np.delete(new_instance_resh, [5,6,7,8,9,10], axis=1)
|
420 |
prediction = logisticRegr.predict(scaler.transform(new_instance_resh))
|
421 |
|
422 |
return ("Loan approved" if prediction[0] == 1 else "Loan not approved")
|