rachith commited on
Commit
563f648
·
1 Parent(s): 05ea4f3

fixing 2022 bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ nbrs_2020 = knn_model_2020.fit(embedding_matrix_2020)
35
  distances_2020, indices_2020 = nbrs_2020.kneighbors(embedding_matrix_2020)
36
 
37
  model_2022 = AutoModel.from_pretrained('cardiffnlp/twitter-roberta-base-2022-154m')
38
- tokenizers_2022 = AutoTokenizer.from_pretrained('cardiffnlp/twitter-roberta-base-jun2020')
39
  embedding_matrix_2022 = model_2022.embeddings.word_embeddings.weight
40
  embedding_matrix_2022 = embedding_matrix_2022.detach().numpy()
41
  knn_model_2022 = NearestNeighbors(n_neighbors=500,
 
35
  distances_2020, indices_2020 = nbrs_2020.kneighbors(embedding_matrix_2020)
36
 
37
  model_2022 = AutoModel.from_pretrained('cardiffnlp/twitter-roberta-base-2022-154m')
38
+ tokenizers_2022 = AutoTokenizer.from_pretrained('cardiffnlp/twitter-roberta-base-2022-154m')
39
  embedding_matrix_2022 = model_2022.embeddings.word_embeddings.weight
40
  embedding_matrix_2022 = embedding_matrix_2022.detach().numpy()
41
  knn_model_2022 = NearestNeighbors(n_neighbors=500,