PawelDefee/diagrammer

A very quick proto to test how well OpenAI GPT4 Vision API converts paper diagrams to DrawIO

★ 0Forks 0GitHub ↗Compare

README

Testing GPT-4 Vision API

This is a very quick proto to see how well GPT-4 Vision API converts hand-written diagrams into DrawIO compatible XML. Plus an integration of actually opening DrawIO.

For a video clip, see this LinkedIn post

Trying it out

Basically, show any hand-written diagram to the webcam, click 'Capture', the image then gets uploaded to OpenAI, and the returned XML (hopefully valid) is then passed on to DrawIO for viewing and editing.

It's just a React frontend project, so first enter your OpenAI API Key into src/upload.js, variable OAI_APIKEY, and then start the frontend as usual:

npm install
npm start

Contributors

sandst1

Issues