jskinner215 commited on
Commit
3f6e7fc
·
1 Parent(s): d1982ed

Update weaviate_utils.py

Browse files
Files changed (1) hide show
  1. weaviate_utils.py +1 -1
weaviate_utils.py CHANGED
@@ -91,7 +91,7 @@ def ingest_data_to_weaviate(client, csv_file, selected_class):
91
  return
92
 
93
  # Ingest the data into Weaviate
94
- data = dataframe.to_dict(orient="records")
95
  client.data_object.create(data, selected_class)
96
 
97
  # Display a preview of the ingested data
 
91
  return
92
 
93
  # Ingest the data into Weaviate
94
+ data = [record for record in dataframe.to_dict(orient="records")]
95
  client.data_object.create(data, selected_class)
96
 
97
  # Display a preview of the ingested data