Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|