Spaces:
Runtime error
Runtime error
SoooSlooow
commited on
Commit
•
b5f0ef7
1
Parent(s):
09d933c
Upload app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def predict(*args: tuple) -> Any:
|
|
19 |
model = joblib.load(MODEL_PATH)
|
20 |
predictions = model.predict_proba(app_df)
|
21 |
print(predictions)
|
22 |
-
if predictions[0][0]
|
23 |
message = "Client is considered bad. Issuance of credit is not recommended."
|
24 |
else:
|
25 |
message = "Client is considered good. Issuance of credit is allowed."
|
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
|
|
58 |
annual_income = gr.Slider(
|
59 |
label="Annual income",
|
60 |
minimum=0,
|
61 |
-
maximum=
|
62 |
step=10000,
|
63 |
randomize=True,
|
64 |
)
|
|
|
19 |
model = joblib.load(MODEL_PATH)
|
20 |
predictions = model.predict_proba(app_df)
|
21 |
print(predictions)
|
22 |
+
if predictions[0][0] < 0.99:
|
23 |
message = "Client is considered bad. Issuance of credit is not recommended."
|
24 |
else:
|
25 |
message = "Client is considered good. Issuance of credit is allowed."
|
|
|
58 |
annual_income = gr.Slider(
|
59 |
label="Annual income",
|
60 |
minimum=0,
|
61 |
+
maximum=1000000,
|
62 |
step=10000,
|
63 |
randomize=True,
|
64 |
)
|