by simonw · 2y ago · 0 comments
Two prompts:
Build a tool where I can drag and drop on two PDF files and
it uses PDF.js to turn each of their pages into canvas
elements and then displays those pages side by side with a
third image that highlights any differences between them, if
any differences exist
rewrite that code to not use React at all
Here's the result: https://tools.simonwillison.net/compare-pdfsIt actually works quite well! Screenshot here: https://gist.github.com/simonw/9d7cbe02d448812f48070e7de13a5...
For terminal access I like using my own https://llm.datasette.io/ tool with the https://github.com/simonw/llm-claude-3 plugin
For Python library access I recommend checking out Claudette: https://www.answer.ai/posts/2024-06-21-claudette.html
I modified the HTML a tiny bit before publishing it - I set the font to Helvetica and added the note at the bottom of the page showing the prompt I used.
The whole project took less than 5 minutes - then another 10 to write it up.
I didn't find any actual difference. But - Maybe it's just me that's hallucinating