This is a simple Streamlit app that uses Langflow flows to run a conversational flow.
When the application starts, it will ask for the Langflow URL, Flow ID or Endpoint, and Token. You can define these values in the .env file.
After the login, send your message to Langflow using the chat input:
poetry install
If want to set default values for the fields, set the environment variables in the .env
file. Otherwise, you can fill the values in the login form.
Copy the .env_sample
file to .env
and set the variables.
cp .env_sample .env
LANGFLOW_URL: On Langflow, go to the flow you want to use, click on the "API" button, and check the curl
host. Copy it until the api/v1/run
part.
LANGFLOW_FLOW_ID: From the same URL, copy the part after api/v1/run/
until the ?stream=false
part. It is a UUID. You can also set a enpoint name
in the settings of the flow.
LANGFLOW_API_KEY: On the API tab, click on Generate Token
. Copy the token.
poetry run streamlit run app.py