This repo holds all code related to a pieces chatbot for a simple load test.
-
Clone the repo
-
Run
python -m venv .venv
to create a virtual environment -
Run
source .venv/bin/activate
to activate the virtual environment (on Windows, run.venv\Scripts\activate
) -
Run
pip install -r requirements.txt
to install the required packages -
Create a
.env
file in the root directory and add the following variables:PIECES_INSTANCE_HOST=your_instance_host (default is localhost) PIECES_INSTANCE_PORT=your_instance_port (default is 1000 for Windows / MacOS and 5323 for Linux)
-
Run
streamlit run app.py
to start the chatbot
Now you can open http://localhost:8501/
in your browser to check the connection the piecesOS and start chatting with the chatbot.
- Streamlit
- Pieces
- Special thanks to Shivay and his Chatbot Demo