Youngestdeveloper commited on
Commit
c6f6ef2
·
verified ·
1 Parent(s): e456033
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -1,12 +1,8 @@
1
  import gradio as gr
2
  import joblib
3
-
4
  # Load the trained model
5
  model = joblib.load("loan_classifier.joblib")
6
 
7
- # Load Standared Scaler
8
- scalar = joblib.load("std_scaler.bin")
9
-
10
 
11
  def predict_loan_status(
12
  int_rate,
@@ -38,8 +34,7 @@ def predict_loan_status(
38
  }
39
  # Convert the dictionary to a 2D array
40
  input_array = [list(input_dict.values())]
41
- scaled_array = scalar.transform(input_array)
42
- prediction = model.predict(scaled_array)[0]
43
 
44
  if prediction == 0:
45
  return "Loan fully paid"
 
1
  import gradio as gr
2
  import joblib
 
3
  # Load the trained model
4
  model = joblib.load("loan_classifier.joblib")
5
 
 
 
 
6
 
7
  def predict_loan_status(
8
  int_rate,
 
34
  }
35
  # Convert the dictionary to a 2D array
36
  input_array = [list(input_dict.values())]
37
+ prediction = model.predict(input_array)[0]
 
38
 
39
  if prediction == 0:
40
  return "Loan fully paid"