Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from sklearn.cluster import KMeans
|
|
| 8 |
import numpy as np
|
| 9 |
|
| 10 |
# Download the punkt tokenizer
|
| 11 |
-
|
| 12 |
|
| 13 |
# Helper function to split text into topics using KMeans clustering
|
| 14 |
def split_text_into_topics(text, n_topics):
|
|
|
|
| 8 |
import numpy as np
|
| 9 |
|
| 10 |
# Download the punkt tokenizer
|
| 11 |
+
nltk.download('punkt_tab')
|
| 12 |
|
| 13 |
# Helper function to split text into topics using KMeans clustering
|
| 14 |
def split_text_into_topics(text, n_topics):
|