Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -326,7 +326,7 @@ def predict_single(
|
|
| 326 |
# --- Compute derived feature LTV ---
|
| 327 |
la = safe_float(loan_amount)
|
| 328 |
pv = safe_float(property_value)
|
| 329 |
-
ltv = np.nan if (pv is None or pv == 0 or np.isnan(pv)) else la / pv
|
| 330 |
|
| 331 |
input_dict = {
|
| 332 |
"loan_limit": [loan_limit],
|
|
@@ -348,7 +348,7 @@ def predict_single(
|
|
| 348 |
"construction_type": [construction_type],
|
| 349 |
"occupancy_type": [occupancy_type],
|
| 350 |
"Secured_by": [Secured_by],
|
| 351 |
-
"total_units": [
|
| 352 |
"income": [safe_float(income)],
|
| 353 |
"credit_type": [credit_type],
|
| 354 |
"Credit_Score": [safe_float(Credit_Score)],
|
|
|
|
| 326 |
# --- Compute derived feature LTV ---
|
| 327 |
la = safe_float(loan_amount)
|
| 328 |
pv = safe_float(property_value)
|
| 329 |
+
ltv = np.nan if (pv is None or pv == 0 or np.isnan(pv)) else (la / pv)*100
|
| 330 |
|
| 331 |
input_dict = {
|
| 332 |
"loan_limit": [loan_limit],
|
|
|
|
| 348 |
"construction_type": [construction_type],
|
| 349 |
"occupancy_type": [occupancy_type],
|
| 350 |
"Secured_by": [Secured_by],
|
| 351 |
+
"total_units": [total_units],
|
| 352 |
"income": [safe_float(income)],
|
| 353 |
"credit_type": [credit_type],
|
| 354 |
"Credit_Score": [safe_float(Credit_Score)],
|