Steps to run the application
To run the application on local machine (clone the repo)
Download the github repo using the below command
git clone https://github.com/jpmc216/langchain-streamlit.git
Using container
1. To start the application
docker-compose up -d
2. To stop the application
docker-compose down
Using stand-alone application (Python Version >=3.9)
streamlit
1. Change directory into cd streamlit
2. Run the below command to install required packages
pip install -r requirements.txt
3. Run the below command to start the application (This command will automatically open the application in a new browser tab/window)
streamlit run Home.py
To run the application on GITPOD instance
Pre-Requisites
- Open Chrome Browser, click this URL GITPOD and install gitpod chrome plugin.
- If you have not used gitpod before, you may need to setup an account by clicking here and give permissions to access your github/gitlab/bitbucket account.
Steps
- Open the source code repo either on the same/new chrome tab/window.
- Click on Gitpod button to open the repo on gitpod infrastructure. This will open a VS Code like IDE inside a browser.
- Gitpod's start up script (.gitpod.yml) will take care of building and running the container (This will roughly take 3-4 mins).
- Go to "Ports" view and click the link that starts with "https://8000-" to open the app in a new browser tab/window.