Comments (5)
Although this is not an issue per se, a tool like langflow would actually be useful if it offered a python export. There are instances where a flow code might need to be modified for some custom use. I love the tool though. Thanks 😊
from langflow.
We improved the position of the import and export buttons in #49. With that, you can follow the instructions in the README.md to load the exported JSON to python.
It should be something like this:
from langflow import load_flow_from_json
flow = load_flow_from_json("path/to/flow.json")
# Now you can use it like any chain
flow("Hey, have you heard of LangFlow?")
from langflow.
In the backend we are not actually generating a python code, we are using the load functions from LangChain.
from langflow.
In the UI there are two buttons close to the canvas controls (zoom) and they allow you to export as a JSON to later import in python into a langchain object.
We will improve the visibility of those buttons very soon.
from langflow.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from langflow.
Related Issues (20)
- ModuleNotFoundError: Module component.llms.kimi_llm not found HOT 7
- Whether to support flow development based on API HOT 1
- How to Explicitly Identify the Current Session ID in an Ongoing Chat HOT 3
- What is official docker registry of langflow ? HOT 1
- 有离线部署的方式吗?离线部署的时候发现前端页面打不开 HOT 2
- permission denied for schema public HOT 2
- SCYLLA DB Intergration HOT 4
- Postgres migration error HOT 1
- No way to get back home from docs.langflow.org HOT 1
- Deploy error HOT 1
- file_path.split gives ValueError: not enough values to unpack (expected 2, got 1) HOT 3
- SQL Injection Vulnerability HOT 3
- .env missing! HOT 1
- .env missing! (Docker) HOT 5
- How to import code from local modules into customcomponent file? HOT 8
- . HOT 1
- Langflow is awesome. HOT 3
- Custom component is not working in the Langflow 1.0 preview HOT 9
- can't use langflow store as i can't generate api key HOT 6
- Connection to OpenAI API failed, is VPN proxy supported for setting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langflow.