Skip to content

wptmdoorn/simple_nicegui_langchain_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simple Chat Interface with NiceGUI and LangChain

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.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Configuration
  4. Running the Chat Interface
  5. Video Showcase

Prerequisites

Before proceeding with the installation, ensure that you have the following installed on your system:

  • Git
  • Python 3.6 or later

Installation

Follow these steps to set up the project on your local machine:

  1. 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

  1. Install requirements: Navigate to the project directory and run the following command to install the required packages:

pip install -r requirements.txt

Configuration

  1. Create a .env file: Rename the .envtemplate file to .env

  2. Add API Key: Obtain an API key for OpenAI. Open the .env file and add replace the OPENAI_API_KEY with your actual API key

Running the Chat Interface

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.

Video Showcase

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages