🔀 chore(constants.tsx): refactor buildFlowScript function to use template literals for better readability and maintainability

This commit is contained in:
Lucas Oliveira 2023-07-07 12:30:20 -03:00
commit fde865f9ca

View file

@ -166,7 +166,7 @@ TWEAKS = ${
}
flow = load_flow_from_json("${flowName}.json", tweaks=TWEAKS)
# Now you can use it like any chain
flow("Hey, have you heard of Langflow?")`;
flow(${inputs})`;
};
function buildTweakObject(tweak) {