This project utilizes OpenAI to create a Spanish language chatbot and summarize Wikipedia content using the OpenAI API and the Wikipedia library.
- Python 3.x
- OpenAI API key
- Python libraries: openai, dotenv, wikipedia
- Clone the repository
- Install the dependencies:
pip install -r requirements.txt
- Copy the
.env.example
file and rename it to.env
. - Obtain an OpenAI API key and paste it into the
.env
file.
OpenAI Chatbot
- Run the chatbot.py file with python chatbot.py.
- The chatbot will prompt for a Spanish language input message.
- The chatbot will respond with a GPT-3 generated response.
Wikipedia Summarization
- Run the wikibot.py file with python wikibot.py.
- Enter the title of a Spanish language Wikipedia page.
- The program will print a 5 bullet point summary of the page.