This project is a simple chat interface built using Python, the NiceGUI package, and the LangChain API. With this chat interface, you can easily send and receive messages in real-time. This README will guide you through the process of setting up the project on your local machine.
Before proceeding with the installation, ensure that you have the following installed on your system:
- Git
- Python 3.6 or later
Follow these steps to set up the project on your local machine:
- Clone the repository: Open a terminal or command prompt and run the following command to clone the repository:
git clone https://github.com/wptmdoorn/simple_nicegui_langchain_ui.git
- Install requirements: Navigate to the project directory and run the following command to install the required packages:
pip install -r requirements.txt
-
Create a .env file: Rename the .envtemplate file to .env
-
Add API Key: Obtain an API key for OpenAI. Open the
.env
file and add replace theOPENAI_API_KEY
with your actual API key
To run the chat interface, simply execute the following command in the project directory:
python main.py
Now, you can interact with the chat interface using the NiceGUI window.
To get a better understanding of how the chat interface works, check out this short video showcasing the functionality of the project:
NiceGUI.+.GPT-3.-.Persoonlijk.-.Microsoft.Edge.2023-04-26.21-23-31.mp4
That's it! You now have a fully functional chat interface powered by NiceGUI and LangChain. Enjoy chatting!