Spaces:
Runtime error
Runtime error
fixing 2022 bug
Browse files
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-
|
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,
|