Spaces:
Sleeping
Sleeping
fix langchain_core.documents
Browse files- src/pipeline.py +2 -3
src/pipeline.py
CHANGED
|
@@ -8,9 +8,8 @@ from typing import Dict, Any, List, Optional
|
|
| 8 |
|
| 9 |
try:
|
| 10 |
from langchain.docstore.document import Document
|
| 11 |
-
except
|
| 12 |
-
|
| 13 |
-
from langchain.schema import Document
|
| 14 |
|
| 15 |
from .logging import log_error
|
| 16 |
|
|
|
|
| 8 |
|
| 9 |
try:
|
| 10 |
from langchain.docstore.document import Document
|
| 11 |
+
except:
|
| 12 |
+
from langchain_core.documents import Document
|
|
|
|
| 13 |
|
| 14 |
from .logging import log_error
|
| 15 |
|