Automating execution of LangFlow-generated Python in a local app #9428
Unanswered
manikumd22
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi, Have you tried using the Python interpreter component? Is there a constraint in your set up that means the python interpreter component is not appropriate? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’ve set up a LangFlow agent that generates Python code. Right now, I copy/paste that code into a local desktop application to run it.
I’d like to skip the copy/paste step so that whenever LangFlow generates code, it’s automatically saved as a .py file and executed by the local app.
What I’ve tried:
From Command Prompt, if I run the app’s .exe and pass a Python script path in the same line, it executes correctly.
My questions:
What’s the best way to wire LangFlow so the generated code is saved to a file and then executed by an external program automatically?
Has anyone built a LangFlow Tool/Component for this kind of generate → save → run workflow?
Any tips for handling logs/output files or queueing multiple runs would be appreciated.
Environment (for context):
OS: Windows 10/11
Thanks in advance for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions