Ignore "repr" key when processing inputs

Unable to call the API locally #1171
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-12-04 08:41:30 -03:00
commit f586142938

View file

@ -125,7 +125,9 @@ def process_inputs(inputs: Optional[dict], artifacts: Dict[str, Any]) -> dict:
inputs = {}
for key, value in artifacts.items():
if key not in inputs or not inputs[key]:
if key == "repr":
continue
elif key not in inputs or not inputs[key]:
inputs[key] = value
return inputs