Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ if len(embeddings_array.shape) == 1:
|
|
28 |
embeddings_array = embeddings_array.reshape(-1, 1)
|
29 |
|
30 |
# Create a new Dataset with the modified data
|
31 |
-
new_data = data.
|
32 |
-
new_data = new_data.
|
33 |
|
34 |
new_data = new_data.add_faiss_index("Abstract_Embeddings")
|
35 |
|
|
|
28 |
embeddings_array = embeddings_array.reshape(-1, 1)
|
29 |
|
30 |
# Create a new Dataset with the modified data
|
31 |
+
new_data = data.remove_columns("Abstract_Embeddings")
|
32 |
+
new_data = new_data.add_columns("Abstract_Embeddings", embeddings_array)
|
33 |
|
34 |
new_data = new_data.add_faiss_index("Abstract_Embeddings")
|
35 |
|