This is a Flask web application that generates detailed to-do lists based on user input using OpenAI's GPT-3.5-turbo model. The app also includes a feature for generating images related to the task descriptions using Stable Diffusion (placeholder function included).
- Generate detailed to-do lists from user input
- Input includes task description and optional date
- Display generated tasks in a modern and elegant UI with raised cards
- Placeholder for generating images using Stable Diffusion
- Python 3.7+
- OpenAI API key
- Stable Diffusion setup (if using the image generation feature)
-
Clone the repository
git clone https://github.com/yourusername/ai-powered-task-generator.git cd ai-powered-task-generator -
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Set your OpenAI API key
Replace
'OPENAI_API_KEY'in.envin your local environment with your OpenAI API key. If it is a prod environment, make sure to set it as an environment variable.
-
Start the Flask application
python app.py
-
Open your browser and go to
http://127.0.0.1:5000/
- Enter a task description and optional date into the input fields.
- Click "Generate Task" to receive a detailed to-do list.
- Generated tasks will be displayed in raised cards with a modern UI.
- (Optional) Click "Generate Image" to generate an image related to the task description (requires implementing the image generation function).
.
├── app.py # Main Flask application
├── templates
│ └── index.html # HTML template for the web interface
├── static
│ └── styles.css # CSS file for styling
├── requirements.txt # List of dependencies
└── README.md # This README file