wt002 commited on
Commit
bd864cc
·
verified ·
1 Parent(s): d6960d4

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -431,7 +431,7 @@ except FileNotFoundError as e:
431
  except json.JSONDecodeError as e:
432
  print(f"Error decoding JSON: {e}")
433
 
434
- docs = create_documents("json", json_data)
435
  texts = [doc.page_content for doc in docs]
436
 
437
  # -----------------------------
 
431
  except json.JSONDecodeError as e:
432
  print(f"Error decoding JSON: {e}")
433
 
434
+ docs = create_documents("json", data)
435
  texts = [doc.page_content for doc in docs]
436
 
437
  # -----------------------------