summaryrefslogtreecommitdiffstats
path: root/g4f/image.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-18 23:13:57 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-18 23:13:57 +0200
commit9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa (patch)
tree4a137ca4958a81272e37f952b9330a197038f83f /g4f/image.py
parentFix OpenaiChat provider, improve proofofwork (diff)
downloadgpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar.gz
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar.bz2
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar.lz
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar.xz
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.tar.zst
gpt4free-9ddac1715f7d656ebcf0bc4d0247e9bfd32626fa.zip
Diffstat (limited to '')
-rw-r--r--g4f/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/image.py b/g4f/image.py
index 3d339266..a677e8df 100644
--- a/g4f/image.py
+++ b/g4f/image.py
@@ -210,8 +210,8 @@ def format_images_markdown(images: Union[str, list], alt: str, preview: Union[st
if not isinstance(preview, list):
preview = [preview.replace('{image}', image) if preview else image for image in images]
result = "\n".join(
- #f"[![#{idx+1} {alt}]({preview[idx]})]({image})"
- f'[<img src="{preview[idx]}" width="200" alt="#{idx+1} {alt}">]({image})'
+ f"[![#{idx+1} {alt}]({preview[idx]})]({image})"
+ #f'[<img src="{preview[idx]}" width="200" alt="#{idx+1} {alt}">]({image})'
for idx, image in enumerate(images)
)
start_flag = "<!-- generated images start -->\n"