Git Product home page Git Product logo

Comments (5)

KSVQ avatar KSVQ commented on June 12, 2024 15

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.

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024 5

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.

ibiscp avatar ibiscp commented on June 12, 2024

In the backend we are not actually generating a python code, we are using the load functions from LangChain.

from langflow.

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024

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.

stale avatar stale commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.