This is a simple web application that uses OpenAI's GPT-3 API to summarize text input and generate an image that corresponds to the summary.
To get started with this application, you will need to have the following installed on your system:
- Node.js (v14 or later)
- Python (v3.7 or later)
To run the application, follow these steps:
- Clone the repository to your local machine.
- Install the necessary Node.js packages by running
npm install
. - reate a virtual environment for the Python dependencies by running
python -m venv .venv
. - Activate the virtual environment by running source
.venv/bin/activate
(on Linux/Mac) or venv\Scripts\activate (on Windows). - Install the necessary Python packages by running pip install -r requirements.txt.
- Create an OpenAI API key by following the instructions here.
- Set the OPENAI_API_KEY environment variable to your API key.
- Start the development server by running
npm start
. - Navigate to
http://localhost:3000
in your web browser.
The application has three steps:
- Enter text to be summarized in the input field.
- Click "Next" to generate a summary and corresponding image.
- View the image and summary, and click "Previous" to return to the input field.
If you'd like to contribute to this project, please open an issue or pull request on GitHub.
This project is licensed under the MIT License. See LICENSE for more information.