Spaces:
Sleeping
Sleeping
Update pages/✨first.py
Browse files- pages/✨first.py +2 -2
pages/✨first.py
CHANGED
@@ -17,13 +17,13 @@ def clean(text):
|
|
17 |
|
18 |
# Загрузка весов модели
|
19 |
|
20 |
-
model_filename = '
|
21 |
with open(model_filename, 'rb') as file:
|
22 |
model = pickle.load(file)
|
23 |
|
24 |
# Загрузка весов векторизатора
|
25 |
vectorizer = CountVectorizer()
|
26 |
-
vectorizer_filename = '
|
27 |
with open(vectorizer_filename, 'rb') as file:
|
28 |
vectorizer = pickle.load(file)
|
29 |
|
|
|
17 |
|
18 |
# Загрузка весов модели
|
19 |
|
20 |
+
model_filename = 'model_weights.pkl'
|
21 |
with open(model_filename, 'rb') as file:
|
22 |
model = pickle.load(file)
|
23 |
|
24 |
# Загрузка весов векторизатора
|
25 |
vectorizer = CountVectorizer()
|
26 |
+
vectorizer_filename = 'vectorizer_weights.pkl'
|
27 |
with open(vectorizer_filename, 'rb') as file:
|
28 |
vectorizer = pickle.load(file)
|
29 |
|