MotoPanda commited on
Commit
4e810c2
·
verified ·
1 Parent(s): d109898

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,13 +6,13 @@ import random
6
  import matplotlib.pyplot as plt
7
  st.title('Каталог профессий IT и Продажи')
8
 
9
- """Внедрение модели"""
10
  from predict import CatBoostPredictor
11
  # import sys
12
 
13
  predictor = CatBoostPredictor("catboostregressor_IT_and_sales.json",
14
  "heuristic_regressor.json")
15
- """Внедрение модели"""
16
 
17
 
18
 
@@ -174,12 +174,12 @@ def table(sphere: str, list_with_skills: list, dohod, sphere_change, gotov_uchit
174
  df_fin = table(sphere, list_skills, dohod, sphere_change, gotov_uchitsia)
175
 
176
 
177
- """Внедрение модели"""
178
 
179
 
180
  st.header('Рост Вашего дохода')
181
  labels = [age, age+3]
182
- dohod_2 = predictor.predict(dohod, age, job)
183
  # 200_000.0, 25.0, "IT"
184
  values = [dohod, dohod_2]
185
 
 
6
  import matplotlib.pyplot as plt
7
  st.title('Каталог профессий IT и Продажи')
8
 
9
+ #"""Внедрение модели"""
10
  from predict import CatBoostPredictor
11
  # import sys
12
 
13
  predictor = CatBoostPredictor("catboostregressor_IT_and_sales.json",
14
  "heuristic_regressor.json")
15
+ # """Внедрение модели"""
16
 
17
 
18
 
 
174
  df_fin = table(sphere, list_skills, dohod, sphere_change, gotov_uchitsia)
175
 
176
 
177
+ # """Внедрение модели"""
178
 
179
 
180
  st.header('Рост Вашего дохода')
181
  labels = [age, age+3]
182
+ dohod_2 = predictor.predict(dohod, float(age), str(job))
183
  # 200_000.0, 25.0, "IT"
184
  values = [dohod, dohod_2]
185