Spaces:
Sleeping
Sleeping
Vaishak G Kumar
commited on
Update main.py
Browse files
main.py
CHANGED
|
@@ -90,7 +90,8 @@ def process_query(oai_key, query, max_auto_reply):
|
|
| 90 |
dataset = data_loader.load_and_process(task.lower())
|
| 91 |
|
| 92 |
# Save dataset to a JSON file and get the file path
|
| 93 |
-
|
|
|
|
| 94 |
data_loader.save_to_json(dataset, json_file_path)
|
| 95 |
|
| 96 |
# Initialize AgentsFactory with the path to the JSON file
|
|
|
|
| 90 |
dataset = data_loader.load_and_process(task.lower())
|
| 91 |
|
| 92 |
# Save dataset to a JSON file and get the file path
|
| 93 |
+
json_file_name = "dataset.json" # Provide a suitable file name
|
| 94 |
+
json_file_path = os.path.join("./src/datatonic/", json_file_name) # Define the complete file path
|
| 95 |
data_loader.save_to_json(dataset, json_file_path)
|
| 96 |
|
| 97 |
# Initialize AgentsFactory with the path to the JSON file
|