This is a Flask application that fetches an image from OpenAI's DALL-E API and displays it on a webpage. The image is of a chubby daschund wearing a sailor hat on the beach, with the caption being today's date.
Clone the repository and install the required packages:
git clone [email protected]:hart-venus/bachicha-daily.git
cd bachicha-daily
pip install -r requirements.txt
Set up the environment variable OPENAI_API_KEY to your OpenAI API key. You can get an API key from https://platform.openai.com/. To run the application, use the following command:
python app.py
The application will start a server at http://localhost:5000/. Open this URL in a web browser to view the image.
- / - Displays the image fetched from the DALL-E API.
- /get-image - Fetches a new image from the DALL-E API.
Contributions are welcome.
MIT
- Image caching
- Image Rating System
- Custom prompts for server side (not just the daschund image)
- Custom prompts each day algorithmically generated
- Responsive design
- Image history
- Links to my social media
- Connect with weather API to display weather
- CI/CD pipeline
- Dockerize