Spaces:
Sleeping
Sleeping
Minor Updates
#1
by Azerofth - opened
app.py
CHANGED
|
@@ -53,8 +53,8 @@ def build_row(experience, salary, projects, education, certification, job_role,
|
|
| 53 |
return pd.DataFrame([row])
|
| 54 |
|
| 55 |
def format_decision(proba: float):
|
| 56 |
-
decision = "Hire ✅" if proba >= 0.
|
| 57 |
-
confidence = "High" if (proba >= 0.
|
| 58 |
return decision, confidence
|
| 59 |
|
| 60 |
# ----------------------------
|
|
@@ -133,7 +133,7 @@ def dice_recourse_fn(experience, salary, projects, education, certification, job
|
|
| 133 |
# ----------------------------
|
| 134 |
PRESETS = {
|
| 135 |
"Strong Candidate (Hire)": dict(
|
| 136 |
-
experience=
|
| 137 |
certification="AWS Certified", job_role="Data Scientist",
|
| 138 |
skills=["Python", "SQL", "MachineLearning", "TensorFlow", "Pytorch"]
|
| 139 |
),
|
|
|
|
| 53 |
return pd.DataFrame([row])
|
| 54 |
|
| 55 |
def format_decision(proba: float):
|
| 56 |
+
decision = "Hire ✅" if proba >= 0.75 else "Reject ❌"
|
| 57 |
+
confidence = "High" if (proba >= 0.5 or proba <= 0.2) else "Medium"
|
| 58 |
return decision, confidence
|
| 59 |
|
| 60 |
# ----------------------------
|
|
|
|
| 133 |
# ----------------------------
|
| 134 |
PRESETS = {
|
| 135 |
"Strong Candidate (Hire)": dict(
|
| 136 |
+
experience=5, salary=80000, projects=3, education="M.Tech",
|
| 137 |
certification="AWS Certified", job_role="Data Scientist",
|
| 138 |
skills=["Python", "SQL", "MachineLearning", "TensorFlow", "Pytorch"]
|
| 139 |
),
|