Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Text Block #244

Open
OGHO-SAYE opened this issue Nov 6, 2024 · 0 comments
Open

Image Text Block #244

OGHO-SAYE opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@OGHO-SAYE
Copy link
Contributor

Summary:

The Block fails to produce an output for the images, as well as the caption.

Expected behavior:

Received a list of images using the multi-file upload block, and output the images, with the view images block, as well as provided captions with the view text block.

Actual behavior:

Runs into an error and Status updates to fail

Steps to reproduce:

  1. Drag and drop relevant Image text block on canvas
  2. Connect a multi-file upload block for image selection, and select images.
  3. Drag and drop a view images block, and connect to the output of the Image Text block
  4. Drag and drop a view text block, and connect to the output of image text block

Zetaforge version:

0.3.2

Operating System

MacOs

Other operating system:

No response

Logs:

[2024/11/06 13:11:23] 
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip

[2024/11/06 13:11:32]  ---> Removed intermediate container 9bf734d96215
[2024/11/06 13:11:32]  ---> 42a7ef1cb1eb
[2024/11/06 13:11:32] Successfully built 42a7ef1cb1eb
[2024/11/06 13:11:32] Successfully tagged zetaforge/org/image-to-text:14c272fd43987631dba6853f42a821455e14e56c295e6aa1bd1062bf1754395f
[2024/11/06 13:11:34] Status Updated: Running
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo] debug||| {'image_path': None}
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo] Traceback (most recent call last):
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/app/entrypoint.py", line 87, in <module>
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     main()
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/app/entrypoint.py", line 42, in main
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     params.append(ast.literal_eval(value))
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]                   ^^^^^^^^^^^^^^^^^^^^^^^
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/usr/local/lib/python3.12/ast.py", line 112, in literal_eval
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     return _convert(node_or_string)
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]            ^^^^^^^^^^^^^^^^^^^^^^^^
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/usr/local/lib/python3.12/ast.py", line 111, in _convert
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     return _convert_signed_num(node)
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]            ^^^^^^^^^^^^^^^^^^^^^^^^^
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/usr/local/lib/python3.12/ast.py", line 85, in _convert_signed_num
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     return _convert_num(node)
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]            ^^^^^^^^^^^^^^^^^^
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/usr/local/lib/python3.12/ast.py", line 76, in _convert_num
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     _raise_malformed_node(node)
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]   File "/usr/local/lib/python3.12/ast.py", line 73, in _raise_malformed_node
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo]     raise ValueError(msg + f': {node!r}')
[2024/11/06 13:11:37][dm4s2-image-to-text-0wxv6cak64fo] ValueError: malformed node or string: None
[2024/11/06 13:11:38][dm4s2-image-to-text-0wxv6cak64fo] Error: exit status 1
[2024/11/06 13:11:41] Status Updated: Failed
[2024/11/06 13:11:41] Status: Completed
[2024/11/06 13:11:41] error during pipeline run execution; err=pipeline-86lif5pplv3v-dm4s2-3400918981: Error (exit code 1)

Recording:

image

Anything else?:

No response

@OGHO-SAYE OGHO-SAYE added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant