Spaces:
Runtime error
Runtime error
jaleesahmed
commited on
Commit
·
982ddaf
1
Parent(s):
045b70a
app
Browse files
app.py
CHANGED
@@ -32,15 +32,11 @@ def update(array_value):
|
|
32 |
prediction_value = reg.predict(np.array([[2,2,1,3,1,2,0,1,40,1]]))
|
33 |
return f"Prediction : {prediction_value}!"
|
34 |
|
35 |
-
inputs = [
|
36 |
-
gr.Dropdown(["2,2,1,3,1,2,0,1,40,1", "0,0,0,3,0,2,0,1,2,1"], label="Prediction Scenario:")
|
37 |
-
]
|
38 |
-
|
39 |
with gr.Blocks() as demo:
|
40 |
gr.Markdown("*** Employee Experience Prediction ***")
|
41 |
gr.Markdown("[EmployeeExperience, HealthBenefitsSatisfaction, SalarySatisfaction, Designation, HealthConscious, EmployeeFeedbackSentiments, Education, Gender, HoursOfTrainingAttendedLastYear, InternalJobMovement, Attrition]")
|
42 |
with gr.Row():
|
43 |
-
inp =
|
44 |
out = gr.Textbox()
|
45 |
btn = gr.Button("Run")
|
46 |
btn.click(fn=update, inputs=inp, outputs=out)
|
|
|
32 |
prediction_value = reg.predict(np.array([[2,2,1,3,1,2,0,1,40,1]]))
|
33 |
return f"Prediction : {prediction_value}!"
|
34 |
|
|
|
|
|
|
|
|
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown("*** Employee Experience Prediction ***")
|
37 |
gr.Markdown("[EmployeeExperience, HealthBenefitsSatisfaction, SalarySatisfaction, Designation, HealthConscious, EmployeeFeedbackSentiments, Education, Gender, HoursOfTrainingAttendedLastYear, InternalJobMovement, Attrition]")
|
38 |
with gr.Row():
|
39 |
+
inp = gr.Dropdown(["2,2,1,3,1,2,0,1,40,1", "0,0,0,3,0,2,0,1,2,1"], label="Prediction Scenario:")
|
40 |
out = gr.Textbox()
|
41 |
btn = gr.Button("Run")
|
42 |
btn.click(fn=update, inputs=inp, outputs=out)
|