Juho Inkinen
Revise README for VLM Caption & Annif Demo
79e21f4 unverified

A newer version of the Gradio SDK is available: 6.1.0

Upgrade

VLM Caption & Annif Demo

How this works:

  1. Upload or take a photo.
  2. The image is sent to a Visual Language Model to generate a caption.
  3. Annif suggests subjects based on the caption.

Developed using Copilot Agent.

This demo is/was deployed as a Hugging Face Space NatLibFi/Caption-Annif-Demo for a workshop at Kirjastoverkkopäivät 2025.

Deployment

Deploy by just pushing the code to Hugging Face; you can e.g. add HF as a new remote:

git remote add huggingface git@hf.co:spaces/NatLibFi/Caption-Annif-Demo

and then

git push huggingface

The app needs these environment variables:

  • ANNIF_API_BASE_URL
  • VLM_API_KEY
  • VLM_API_BASE_URL

For Hugging Face Space deployment they can be set in repo settings.

Development

When developing you can use autoreload by running the app like this:

gradio app.py