Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
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",
|
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 |
# -----------------------------
|