From e03e306292b8b21b5593340384d79fe51de8065f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 31 Jul 2023 11:46:23 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(flow-runner.mdx):=20fix=20t?= =?UTF-8?q?ypo=20in=20line=20141,=20"looks"=20instead=20of=20"look=20like"?= =?UTF-8?q?=20=F0=9F=93=9D=20docs(flow-runner.mdx):=20remove=20extra=20bla?= =?UTF-8?q?nk=20lines=20in=20code=20examples=20for=20better=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/examples/flow-runner.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/docs/examples/flow-runner.mdx b/docs/docs/examples/flow-runner.mdx index ffa4d2e2e..f762c38c3 100644 --- a/docs/docs/examples/flow-runner.mdx +++ b/docs/docs/examples/flow-runner.mdx @@ -76,6 +76,7 @@ description = "Run other flows using a document as input." ```python from langflow import CustomComponent + class MyComponent(CustomComponent): display_name = "Custom Component" description = "This is a custom component" @@ -95,6 +96,7 @@ The typical structure of a Custom Component is composed of _`display_name`_ and ```python from langflow import CustomComponent + # focus class FlowRunner(CustomComponent): # focus @@ -141,6 +143,7 @@ from langflow import CustomComponent # focus from langchain.schema import Document + class FlowRunner(CustomComponent): display_name = "Flow Runner" description = "Run other flows using a document as input." @@ -326,7 +329,7 @@ Finally, we can add field customizations through the _`build_config`_ method. He -Done! This is what our script and custom component look like: +Done! This is what our script and custom component looks like: