Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
VLM Caption & Annif Demo
How this works:
- Upload or take a photo.
- The image is sent to a Visual Language Model to generate a caption.
- 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_URLVLM_API_KEYVLM_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