Download test_imports_doc.py from d-e-e-k-11/amazon_product: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/d-e-e-k-11/amazon_product/resolve/main/test_imports_doc.py
- Command line
-
hf download hf://d-e-e-k-11/amazon_product/test_imports_doc.py
-
curl -L -o test_imports_doc.py https://huggingface.co/d-e-e-k-11/amazon_product/resolve/main/test_imports_doc.py
358 Bytes
| try: | |
| from langchain_core.documents import Document | |
| print('from langchain_core.documents import Document') | |
| except Exception as e: | |
| print(f'core failed: {e}') | |
| try: | |
| from langchain.docstore.document import Document | |
| print('from langchain.docstore.document import Document') | |
| except Exception as e: | |
| print(f'docstore failed: {e}') | |