Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def main():
|
|
56 |
|
57 |
# Convert Monthly Income to string
|
58 |
monthly_income = str(monthly_income)
|
59 |
-
|
60 |
# Create a DataFrame to hold the user input data
|
61 |
input_data = pd.DataFrame({
|
62 |
'Age': [age],
|
@@ -64,7 +64,7 @@ def main():
|
|
64 |
'EnvironmentSatisfaction': [environment_satisfaction],
|
65 |
'JobRole': [job_role],
|
66 |
'JobSatisfaction': [job_satisfaction],
|
67 |
-
'MonthlyIncome': [monthly_income],
|
68 |
'NumCompaniesWorked': [num_companies_worked],
|
69 |
'OverTime': [over_time],
|
70 |
'PercentSalaryHike': [percent_salary_hike],
|
|
|
56 |
|
57 |
# Convert Monthly Income to string
|
58 |
monthly_income = str(monthly_income)
|
59 |
+
|
60 |
# Create a DataFrame to hold the user input data
|
61 |
input_data = pd.DataFrame({
|
62 |
'Age': [age],
|
|
|
64 |
'EnvironmentSatisfaction': [environment_satisfaction],
|
65 |
'JobRole': [job_role],
|
66 |
'JobSatisfaction': [job_satisfaction],
|
67 |
+
'MonthlyIncome': [monthly_income], # Convert to string
|
68 |
'NumCompaniesWorked': [num_companies_worked],
|
69 |
'OverTime': [over_time],
|
70 |
'PercentSalaryHike': [percent_salary_hike],
|