This is a chatbot that uses ChatterBot for basic conversation and GPT-2 for more advanced responses.
-
Clone the repository:
git clone https://github.com/yourusername/my-chatbot-repo.git cd my-chatbot-repo
-
Ensure you have Python 3.8.19 installed. You can use
pyenv
to manage Python versions on Unix-like systems, or follow the instructions to set up Python on Windows. -
On Unix-like systems, you can use the provided setup script to create a virtual environment:
./setup.sh source venv/bin/activate
-
On Windows, you can use the provided setup script to create a virtual environment:
setup.bat venv\Scripts\activate
-
Install the required libraries:
pip install -r requirements.txt
-
Alternatively, you can install dependencies using
poetry
:poetry install
-
Run the chatbot:
python chatbot.py
Start the conversation by typing a message and pressing Enter. The bot will respond to your input. You can provide feedback on the bot's responses and help it learn by suggesting better responses.
Type 'bye', 'exit', or 'quit' to end the conversation.