wt002 commited on
Commit
f49b40e
·
verified ·
1 Parent(s): 5b0cdf6

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -400,7 +400,7 @@ def create_documents(data_source: str, data: list) -> list:
400
  # Path to your data.json
401
  file_path = "/home/wendy/Downloads/data.json"
402
 
403
- def load_data(file_path: str) -> List[dict]:
404
  """Safe JSON data loading with error handling"""
405
  if not os.path.exists(file_path):
406
  raise FileNotFoundError(f"Data file not found: {file_path}")
 
400
  # Path to your data.json
401
  file_path = "/home/wendy/Downloads/data.json"
402
 
403
+ def load_data(file_path: str) -> list[dict]:
404
  """Safe JSON data loading with error handling"""
405
  if not os.path.exists(file_path):
406
  raise FileNotFoundError(f"Data file not found: {file_path}")