From 55ace938222ea43c6324666ec081ca023ee6517c Mon Sep 17 00:00:00 2001 From: Emmett McFaralne Date: Tue, 16 Apr 2024 00:44:24 -0400 Subject: [PATCH] updated text_only logic --- thepipe_api/thepipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thepipe_api/thepipe.py b/thepipe_api/thepipe.py index ca5ec87..fef8bc5 100644 --- a/thepipe_api/thepipe.py +++ b/thepipe_api/thepipe.py @@ -16,7 +16,7 @@ def save_outputs(chunks: List[Chunk], verbose: bool = False, text_only: bool = F continue if chunk.text is not None: text += f"""{chunk.path}:\n```\n{chunk.text}\n```\n\n""" - if chunk.image is not None: + if (chunk.image is not None) and (not text_only): if chunk.path is None: clean_path = f"image" else: