This project allows users to retrieve outdated facts and concepts based on a specific country and year. It leverages OpenAI's GPT model to generate the responses, providing a unique and engaging experience for users.
- Interactive Web Interface: Users can select a country and year to get relevant outdated facts.
- Powered by OpenAI: The responses are generated using OpenAI's GPT model, providing intelligent and context-aware answers.
- Cross-Origin Support: Implements CORS to allow cross-origin requests.
- Python 3.x
- Flask
- Flask-CORS
- OpenAI
-
Clone the repository:
git clone https://github.com/IndigoW0lf/OutdatedEducator.git
-
Navigate to the project directory:
cd OutdatedEducator
-
Install the required dependencies:
pip install flask flask-cors openai
To run this project, you'll need to configure your OpenAI API key:
-
Obtain an API Key: Follow the instructions in OpenAI's official documentation to obtain your key.
-
Set the Environment Variable: Configure your project by setting up an environment variable named OPENAI_API_KEY with your actual API key value. Depending on your operating system, use the following command:
For Unix/Linux/macOS:
export OPENAI_API_KEY='your-api-key-here'
For Windows:
set OPENAI_API_KEY=your-api-key-here
Replace 'your-api-key-here'
with your actual API key.
Note: Be sure to keep your API key private and secure. Do not share it publicly or commit it to a public repository.
After setting up the environment variable, you can run the Flask application:
cd backend
python app.py
The application will start, and you can access it at http://127.0.0.1:5000/.
Feel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss the proposed change.
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks to OpenAI for providing the AI engine that powers this application.