Stand out in the AI market by programming custom chatbots with Python and the ChatGPT API.
To get started with this chatbot project, follow the instructions below.
- Python 3.x
- Anaconda
-
Clone this repository to your local machine:
git clone https://github.com/Jefe21054/PyBot-ChatGPT.git
-
Create a new Anaconda virtual environment:
conda create --name chatbot python
-
Activate the virtual environment:
conda activate chatbot
-
Install the required dependencies:
pip install -r requirements.txt
-
Configure OpenAI API credentials in a
.env
file. You should have something like this:OPENAI_API_KEY='YOUR_OPENAI_API_KEY'
-
Launch the Jupyter Notebook:
jupyter-notebook
-
Open the
entrenamiento.ipynb
notebook in Jupyter and run the cells to interact with the chatbot.
-
Ensure the Anaconda virtual environment is activated:
conda activate chatbot
-
Start the Gradio interface:
python test.py
-
Access the chatbot interface in your browser at
http://127.0.0.1:7864
.
For more information on the OpenAI API and how to use it in your projects, please refer to the OpenAI API Documentation.
Contributions are welcome! If you have any ideas or suggestions, please open an issue or submit a pull request.
This project is licensed under the GPL-3.0 License.