Skip to content

Commit

Permalink
Prevent empty img
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Nov 18, 2024
1 parent 6a13c0b commit eeb1222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pygpt_net/core/render/web/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ def append_extra(self, meta: CtxMeta, ctx: CtxItem, footer: bool = False, render
if c > 0:
n = 1
for image in ctx.images:
if image is None:
continue
# don't append if it is an external url
if image.startswith("http"):
continue
Expand Down

0 comments on commit eeb1222

Please sign in to comment.