Default values of bool pipeline arguments are turning to strings
the-crypt-keeper opened this issue · comments
the-crypt-keeper commented
Observe the parameter values for this default run (nothing changed, I just loaded the page and but Run):
There are 3 booleans here:
use_beam_search: bool | None = InputField(default=False)
full_result: bool | None = InputField(default=False)
ignore_eos: bool | None = InputField(default=False)
Notice the default value of "false" (str) instead of False (bool) in the call:
"use_beam_search": "false",
...
"full_result": "false",
"ignore_eos": "false",
This type mismatch causes my pipeline misbehavior.
Known Workaround: for each boolean option, turn it off and on again before clicking Run.
plutopulp commented
Hi @the-crypt-keeper, thanks for flagging the issue! It was an issue with how boolean inputs were being set in the form on the frontend. We'll be redeploying a fix for this shortly.