Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,11 @@ with open("preprocessing1.pkl", "rb") as f:
|
|
| 11 |
clean_text = dill.load(f)
|
| 12 |
|
| 13 |
# Load Text Vectorization Layer from SavedModel
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Define News Categories
|
| 18 |
news_categories = ["Business", "Sci/Tech", "Sports", "World"]
|
|
|
|
| 11 |
clean_text = dill.load(f)
|
| 12 |
|
| 13 |
# Load Text Vectorization Layer from SavedModel
|
| 14 |
+
import pickle
|
| 15 |
+
|
| 16 |
+
with open("vectorizer.pkl", "rb") as f:
|
| 17 |
+
vectorizer = pickle.load(f)
|
| 18 |
+
|
| 19 |
|
| 20 |
# Define News Categories
|
| 21 |
news_categories = ["Business", "Sci/Tech", "Sports", "World"]
|