Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ from scipy.spatial.distance import cosine
|
|
4 |
from sklearn.metrics.pairwise import cosine_similarity
|
5 |
import nltk
|
6 |
|
|
|
|
|
|
|
7 |
# Carica il modello
|
8 |
model = SentenceTransformer('sentence-transformers/all-roberta-large-v1', device='cpu')
|
9 |
nltk.download('punkt')
|
|
|
4 |
from sklearn.metrics.pairwise import cosine_similarity
|
5 |
import nltk
|
6 |
|
7 |
+
nltk.download('punkt', download_dir='./nltk_data')
|
8 |
+
nltk.data.path.append('./nltk_data')
|
9 |
+
|
10 |
# Carica il modello
|
11 |
model = SentenceTransformer('sentence-transformers/all-roberta-large-v1', device='cpu')
|
12 |
nltk.download('punkt')
|