1 comment

[ 1.8 ms ] story [ 15.7 ms ] thread
You can turn photos of math worksheets into additional practice problems using OpenAI's gpt-4-vision-preview and Python.

Today, we’re going to use ChatGPT, in Python, to take an image of a 6th grade math worksheet and generate a similar problem set. Why? Once in a while, I come up with practice problems to supplement my daughter’s math homework. It takes time to write good ones, and although I really enjoy personalizing them, I wouldn’t mind saving some time.

This blog post will cover:

* Using gpt-4-vision-preview via the OpenAI Python SDK to generate a worksheet from an uploaded photo. * Iterating until we are happy with the results.

In subsequent blog posts, we will use the generated assignment to:

* Ask gpt-4 to spit out LaTeX code so we can generate a PDF of the new assignment.

* Experiment with generating a very simple, pure HTML/JS based flash card example.