Code Monkey home page Code Monkey logo

gds-image-describer's Introduction

gds-image-describer

This demo uses the GPT-4 Vision API to generate alt text for images. It helps us understand where this can be useful and what the limitations are.

The demo is scoped to the GDS blog. It works only with URLs that start with https://gds.blog.gov.uk/....

Initial observations

  • The model is good at generating alt text-like descriptions...
  • ...but you wouldn't put them on a website without checking and potentially editing/rewriting first.

Therefore something like this may fit into a "auto-suggest" type of workflow.

Development

To run this locally:

  • clone the repo
  • install dependencies: npm install
  • create an OpenAI API key
  • copy the file .env.example to .env and add your OpenAI API key
  • run the app: npm run dev
  • visit 127.0.0.1:1999 in your browser

If you make changes, you can deploy with npm run deploy. You will be prompted to sign in to PartyKit, and will be given the public URL of your deployed app at the end of the process. (Note it will take a few minutes for the URL to become active after the first deployment.)

gds-image-describer's People

Contributors

genmon avatar

Watchers

 avatar Kuba Bartwicki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.