Settings

Theme

How to Use ChatGPT to Generate Math Homework from Photos of Assignments

medium.com

5 points by skapadia 2 years ago · 1 comment

Reader

skapadiaOP 2 years ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection