Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ new_data = data.remove_columns("Abstract_Embeddings")
|
|
27 |
embeddings_array = np.array(data["Abstract_Embeddings"])
|
28 |
if len(embeddings_array.shape) == 1:
|
29 |
embeddings_array = embeddings_array.reshape(-1, 1)
|
|
|
30 |
new_data = new_data.add_column("Abstract_Embeddings", embeddings_array.tolist())
|
31 |
|
32 |
# Convert the column to a numpy array
|
|
|
27 |
embeddings_array = np.array(data["Abstract_Embeddings"])
|
28 |
if len(embeddings_array.shape) == 1:
|
29 |
embeddings_array = embeddings_array.reshape(-1, 1)
|
30 |
+
embeddings_array = np.ascontiguousarray(embeddings_array)
|
31 |
new_data = new_data.add_column("Abstract_Embeddings", embeddings_array.tolist())
|
32 |
|
33 |
# Convert the column to a numpy array
|