mystic-ai / pipeline

Pipeline is an open source python SDK for building AI/ML workflows

Home Page:https://www.mystic.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

primitive dict Variable do strange things with default value

ibaraki-douji opened this issue · comments

When using a Variable of type dict, in the /play webui depending in the default value it does different things.

Using no default:

first_input = Variable(
        dict,
        title="first_input",
        description="An input",
    )

It produce :
image

Using a simple default value:

first_input = Variable(
        dict,
        default={"my": "dict"}
        title="Input number",
        description="A basic input number to do things with",
    )

It produce :
image

Using a complex default value:

input_var= Variable(
        dict,
        default={"my": "dict", "is": "big", "and": {"has": "nested", "values": "too"}, "also": {"another": "dict"}}
        title="Input number",
        description="A basic input number to do things with",
    )

It produce :
image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.