Skip to content

Commit

Permalink
updated text_only logic
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed Apr 16, 2024
1 parent 089f6a3 commit 55ace93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thepipe_api/thepipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 55ace93

Please sign in to comment.