📝 docs(flow-runner.mdx): fix typo in line 141, "looks" instead of "look like"
📝 docs(flow-runner.mdx): remove extra blank lines in code examples for better readability
This commit is contained in:
parent
5c42683b40
commit
e03e306292
1 changed files with 4 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ description = "Run other flows using a document as input."
|
||||||
```python
|
```python
|
||||||
from langflow import CustomComponent
|
from langflow import CustomComponent
|
||||||
|
|
||||||
|
|
||||||
class MyComponent(CustomComponent):
|
class MyComponent(CustomComponent):
|
||||||
display_name = "Custom Component"
|
display_name = "Custom Component"
|
||||||
description = "This is a 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
|
```python
|
||||||
from langflow import CustomComponent
|
from langflow import CustomComponent
|
||||||
|
|
||||||
|
|
||||||
# focus
|
# focus
|
||||||
class FlowRunner(CustomComponent):
|
class FlowRunner(CustomComponent):
|
||||||
# focus
|
# focus
|
||||||
|
|
@ -141,6 +143,7 @@ from langflow import CustomComponent
|
||||||
# focus
|
# focus
|
||||||
from langchain.schema import Document
|
from langchain.schema import Document
|
||||||
|
|
||||||
|
|
||||||
class FlowRunner(CustomComponent):
|
class FlowRunner(CustomComponent):
|
||||||
display_name = "Flow Runner"
|
display_name = "Flow Runner"
|
||||||
description = "Run other flows using a document as input."
|
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
|
||||||
|
|
||||||
</CH.Scrollycoding>
|
</CH.Scrollycoding>
|
||||||
|
|
||||||
Done! This is what our script and custom component look like:
|
Done! This is what our script and custom component looks like:
|
||||||
|
|
||||||
<div style={{
|
<div style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue