Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,18 @@ import random
|
|
6 |
import matplotlib.pyplot as plt
|
7 |
st.title('Каталог профессий IT и Продажи')
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
st.sidebar.title('Выбор параметров для подбора вакансий')
|
10 |
|
11 |
with open('catalog.json', 'r') as json_file:
|
@@ -161,10 +173,28 @@ def table(sphere: str, list_with_skills: list, dohod, sphere_change, gotov_uchit
|
|
161 |
|
162 |
df_fin = table(sphere, list_skills, dohod, sphere_change, gotov_uchitsia)
|
163 |
|
|
|
|
|
|
|
|
|
164 |
st.header('Рост Вашего дохода')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
-
labels = [age, age+1, age+2, age+3, age+4, age+5, age+6, age+7, age+8, age+9]
|
167 |
-
values = [dohod, dohod*1.05, dohod*1.1, dohod*1.11, dohod*1.12, dohod*1.13, dohod*1.14, dohod*1.14, dohod*1.14, dohod*1.14,]
|
168 |
fig, ax = plt.subplots()
|
169 |
|
170 |
# fig.set_size_inches(10, 5)
|
|
|
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 |
+
|
19 |
+
|
20 |
+
|
21 |
st.sidebar.title('Выбор параметров для подбора вакансий')
|
22 |
|
23 |
with open('catalog.json', 'r') as json_file:
|
|
|
173 |
|
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 |
+
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
|
190 |
+
# labels = [age, age+1, age+2, age+3, age+4, age+5, age+6, age+7, age+8, age+9]
|
191 |
+
# values = [dohod, dohod*1.05, dohod*1.1, dohod*1.11, dohod*1.12, dohod*1.13, dohod*1.14, dohod*1.14, dohod*1.14, dohod*1.14,]
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
|
196 |
+
|
197 |
|
|
|
|
|
198 |
fig, ax = plt.subplots()
|
199 |
|
200 |
# fig.set_size_inches(10, 5)
|