Skip to content

Instantly share code, notes, and snippets.

@scarolan
Last active October 3, 2023 20:50
Show Gist options
  • Save scarolan/91587f78e0eb8fb9de52abe9d4b92e08 to your computer and use it in GitHub Desktop.
Save scarolan/91587f78e0eb8fb9de52abe9d4b92e08 to your computer and use it in GitHub Desktop.
LLM prompts for writing apps

App for endless cat photos

Generate a web application written in Python that will show a random cat photo every ten seconds. Import the time, random, and requests modules, and import Flask and Response classes from the flask module.

Get the photos from the placekitten.com API. The format of the URL should be: https://placekitten.com/width/height for example https://placekitten.com/600/400.

The photos of the cats should be between 400-800 pixels height and width. The app should continue running and log inbound requests for files to the terminal. Do not use an index.html template. The entire app should be in a single file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment