Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,7 @@ def predict_category(text):
|
|
| 235 |
processed_text = [pre_process(text)]
|
| 236 |
|
| 237 |
# Vectorize the input
|
| 238 |
-
text_vectorized = vectorizer
|
| 239 |
|
| 240 |
# Pad the sequence
|
| 241 |
text_vectorized = pad_sequences(text_vectorized, padding='pre', maxlen=128)
|
|
|
|
| 235 |
processed_text = [pre_process(text)]
|
| 236 |
|
| 237 |
# Vectorize the input
|
| 238 |
+
text_vectorized = vectorizer(processed_text).np.tolist()
|
| 239 |
|
| 240 |
# Pad the sequence
|
| 241 |
text_vectorized = pad_sequences(text_vectorized, padding='pre', maxlen=128)
|