mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +00:00
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more being intro'd
This commit is contained in:
@@ -27,14 +27,14 @@ doc_path = Path(__file__).parent / "docs/DDOG_Q3_earnings_deck.pdf"
|
||||
img_dump_path = Path(__file__).parent / "docs/"
|
||||
rel_doc_path = doc_path.relative_to(Path.cwd())
|
||||
rel_img_dump_path = img_dump_path.relative_to(Path.cwd())
|
||||
print("pdf index")
|
||||
print("pdf index") # noqa: T201
|
||||
pil_images = get_images_from_pdf(rel_doc_path, rel_img_dump_path)
|
||||
print("done")
|
||||
print("done") # noqa: T201
|
||||
vectorstore = Path(__file__).parent / "chroma_db_multi_modal"
|
||||
re_vectorstore_path = vectorstore.relative_to(Path.cwd())
|
||||
|
||||
# Load embedding function
|
||||
print("Loading embedding function")
|
||||
print("Loading embedding function") # noqa: T201
|
||||
embedding = OpenCLIPEmbeddings(model_name="ViT-H-14", checkpoint="laion2b_s32b_b79k")
|
||||
|
||||
# Create chroma
|
||||
@@ -54,5 +54,5 @@ image_uris = sorted(
|
||||
)
|
||||
|
||||
# Add images
|
||||
print("Embedding images")
|
||||
print("Embedding images") # noqa: T201
|
||||
vectorstore_mmembd.add_images(uris=image_uris)
|
||||
|
Reference in New Issue
Block a user