Mauro24 commited on
Commit
6748684
·
verified ·
1 Parent(s): be65985

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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')