Skip to content

Commit

Permalink
🔨 refactor(constants.tsx): remove unnecessary indentation in getPytho…
Browse files Browse the repository at this point in the history
…nCode function

The indentation of the commented line in the getPythonCode function was unnecessary and has been removed to improve code readability.
  • Loading branch information
ogabrielluiz committed Jun 19, 2023
1 parent 8b71af9 commit 5ea20aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/src/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export const getPythonCode = (flow: FlowType): string => {
const flowName = flow.name;
return `from langflow import load_flow_from_json
flow = load_flow_from_json("${flowName}.json")
# Now you can use it like any chain
flow("Hey, have you heard of LangFlow?")`;
flow = load_flow_from_json("${flowName}.json")
# Now you can use it like any chain
flow("Hey, have you heard of LangFlow?")`;
};

/**
Expand Down

0 comments on commit 5ea20aa

Please sign in to comment.