Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ def salifort(last_evaluation, number_project, tenure, work_accident, promotion_l
|
|
11 |
prediction = model.predict(inputs)
|
12 |
prediction_value = prediction[0]
|
13 |
if prediction_value == 0:
|
14 |
-
label_text = 'Employee would not leave the company
|
15 |
else:
|
16 |
-
label_text = 'Employee will leave the company
|
17 |
return label_text
|
18 |
|
19 |
# Create the Gradio interface
|
|
|
11 |
prediction = model.predict(inputs)
|
12 |
prediction_value = prediction[0]
|
13 |
if prediction_value == 0:
|
14 |
+
label_text = 'Employee would not leave the company 🟢'
|
15 |
else:
|
16 |
+
label_text = 'Employee will leave the company 🔴'
|
17 |
return label_text
|
18 |
|
19 |
# Create the Gradio interface
|