Skip to content

smatiolids/streamlit-langflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit with Langflow

This is a simple Streamlit app that uses Langflow flows to run a conversational flow.

Login

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.

Login

After the login, send your message to Langflow using the chat input:

Langflow Chat

Installation

poetry install

Setup

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

Where do you get the values for the environment variables?

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.

Run

poetry run streamlit run app.py

About

Streamlit app with Langflow for Conversational flows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages