Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def predict(SupportiveGM, Merit, LearningDevelopment, WorkEnvironmente, Engagement, WellBeing, ChainScale):
|
4 |
+
# Replace this with your model logic
|
5 |
+
return f"Received: {SupportiveGM}, {Merit}, {LearningDevelopment}, {WorkEnvironmente}, {Engagement}, {WellBeing}, {ChainScale}"
|
6 |
+
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=predict,
|
9 |
+
inputs=["number"] * 7,
|
10 |
+
outputs="text",
|
11 |
+
title="Employee Turnover Prediction",
|
12 |
+
api_name="/Employee_Turnover"
|
13 |
+
)
|
14 |
+
|
15 |
+
if __name__ == "__main__":
|
16 |
+
iface.launch()
|