Skip to content

Commit

Permalink
add missing image
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhangpurdue committed Oct 28, 2024
1 parent e3de1ef commit 27f035d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modelscope_agent/tools/code_interpreter/code_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ def _execute_code(self, kc: BlockingKernelClient, code: str,
text = msg['content']['data'].get('text/plain', '')
if 'image/png' in msg['content']['data']:
image_b64 = msg['content']['data']['image/png']
image_url = self._serve_image(image_b64, 'png')
image_url = self._serve_image(image_b64, 'png',
is_remote)
image_idx += 1
image = '![IMAGEGEN](%s)' % (image_url)
elif 'text/html' in msg['content']['data']:
Expand Down

0 comments on commit 27f035d

Please sign in to comment.