jaleesahmed commited on
Commit
447347b
·
1 Parent(s): 91c3097
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ def update(array_value):
27
  # In future pass data through array_value parameter
28
  if array_value == "2,2,1,3,1,2,0,1,40,1":
29
  prediction_value = reg.predict(np.array([[2,2,1,3,1,2,0,1,40,1]]))
30
- return f"Prediction : {prediction_value}!"
31
  if array_value == "0,0,0,3,0,2,0,1,2,1":
32
  prediction_value = reg.predict(np.array([[0,0,0,3,0,2,0,1,2,1]]))
33
- return f"Prediction : {prediction_value}!"
34
 
35
  with gr.Blocks() as demo:
36
  gr.Markdown("*** Employee Experience Prediction ***")
 
27
  # In future pass data through array_value parameter
28
  if array_value == "2,2,1,3,1,2,0,1,40,1":
29
  prediction_value = reg.predict(np.array([[2,2,1,3,1,2,0,1,40,1]]))
30
+ return f"Attrition Prediction : {prediction_value}!"
31
  if array_value == "0,0,0,3,0,2,0,1,2,1":
32
  prediction_value = reg.predict(np.array([[0,0,0,3,0,2,0,1,2,1]]))
33
+ return f"Attrition Prediction : {prediction_value}!"
34
 
35
  with gr.Blocks() as demo:
36
  gr.Markdown("*** Employee Experience Prediction ***")