Skip to content

Conversation

@tebba-von-mathenstein
Copy link
Contributor

I'm satisfied with these changes, but I'm opening this pull request to potentially share with students and others to demonstrate a real concrete example of how well these tools now work.

This PR changes the save mechanism from a kinda clunky filesystem based approach with a text file and an image to a SQlite based approach. I had Claude do 3 main things, I made very light edits to the produced code. I asked Claude to make the updates iteratively, and made those changes after each iteration rather than letting Claude run a long time. The update:

  1. Change the final prompt to specify a JSON format rather than free form text, so Claude produces something that can be used more programmatically later.
  2. Creates a SQlite schema with a single table that records the parameters, prompts, and image.
  3. Update the script so it saves to that format instead of the filesystem
  4. Create a second script that allows folks to scan the database in the terminal, and display the images for a specific run.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants