Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def main():
|
|
132 |
with col1:
|
133 |
age = st.number_input("Age", min_value=18, max_value=70)
|
134 |
monthly_income = st.number_input("Monthly Income", min_value=1000, max_value=20000)
|
135 |
-
num_companies_worked = st.number_input("Number of Companies Worked")
|
136 |
percent_salary_hike = st.number_input("Percent Salary Hike", min_value=10, max_value=25)
|
137 |
training_times_last_year = st.number_input("Training Times Last Year", min_value=0, max_value=6)
|
138 |
|
@@ -150,8 +150,8 @@ def main():
|
|
150 |
with col3:
|
151 |
over_time = st.checkbox("Over Time")
|
152 |
relationship_satisfaction = st.selectbox("Relationship Satisfaction", [1, 2, 3, 4])
|
153 |
-
years_since_last_promotion = st.number_input("Years Since Last Promotion")
|
154 |
-
years_with_curr_manager = st.number_input("Years With Current Manager")
|
155 |
|
156 |
# Create a DataFrame to hold the user input data
|
157 |
input_data = pd.DataFrame({
|
|
|
132 |
with col1:
|
133 |
age = st.number_input("Age", min_value=18, max_value=70)
|
134 |
monthly_income = st.number_input("Monthly Income", min_value=1000, max_value=20000)
|
135 |
+
num_companies_worked = st.number_input("Number of Companies Worked", min_value=0, max_value=10)
|
136 |
percent_salary_hike = st.number_input("Percent Salary Hike", min_value=10, max_value=25)
|
137 |
training_times_last_year = st.number_input("Training Times Last Year", min_value=0, max_value=6)
|
138 |
|
|
|
150 |
with col3:
|
151 |
over_time = st.checkbox("Over Time")
|
152 |
relationship_satisfaction = st.selectbox("Relationship Satisfaction", [1, 2, 3, 4])
|
153 |
+
years_since_last_promotion = st.number_input("Years Since Last Promotion", min_value=0, max_value=15)
|
154 |
+
years_with_curr_manager = st.number_input("Years With Current Manager", min_value=0, max_value=15)
|
155 |
|
156 |
# Create a DataFrame to hold the user input data
|
157 |
input_data = pd.DataFrame({
|