A simple chatbot application that allows users to chat with the Glucose Goddess using Gradio for the interface and GPTSimpleVectorIndex for similarity search.
- Python 3.6 or later
- A virtual environment is recommended to manage dependencies
-
Clone the repository: git clone https://github.com/Fritskee/epubGPT.git
-
Change to the project directory: cd epubGPT
-
Create and activate a virtual environment: python -m venv venv
- Linux/Mac:
source venv/bin/activate
- Windows:
venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Set up the
.env
file with the following content:OPENAI_API_KEY=your_openai_api_key
Replace your_openai_api_key
with your actual API key.
-
Update the
book
variable inmain.py
to point to the path of the book file you want to use. -
Run the application:
python main.py
-
Open the Gradio interface in your web browser using the URL provided in the terminal.
-
Type your query into the text input field and press "Submit" to get a response from the chatbot.
This project is licensed under the MIT License - see the LICENSE file for details.