AnguloM commited on
Commit
7c60494
1 Parent(s): 7b69f37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -188,8 +188,8 @@ def predict_approval(int_rate, installment, log_annual_inc, dti, fico,
188
  'revol.util', 'inq.last.6mths', 'delinq.2yrs',
189
  'pub.rec', 'purpose'])
190
  # Make loan approval prediction
191
- result = pipeline.predict(input_data)
192
- return result[0]
193
 
194
 
195
  # Create input components for the Gradio interface
 
188
  'revol.util', 'inq.last.6mths', 'delinq.2yrs',
189
  'pub.rec', 'purpose'])
190
  # Make loan approval prediction
191
+ result = pipeline.predict(input_data)[0]
192
+ return "Loan Approved" if result == 1 else "Loan Not Approved"
193
 
194
 
195
  # Create input components for the Gradio interface