caption_generator / README.md
3v324v23's picture
Refactor application to use Gradio for the frontend and remove Dockerfile and unused dependencies
3660521
---
title: AI Caption Generator
emoji: "πŸ€–"
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 6.3.0
python_version: "3.10"
app_file: app.py
pinned: false
---
# AI Caption Generator
Public demo for generating captions from images and short videos.
## Secrets (recommended)
Set these in your Hugging Face Space **Settings β†’ Secrets**:
- `OPENROUTER_API_KEY` (required) – the app enforces AI caption polishing.
- `BLIP_OFFLINE` (optional) – set to `1` only if you have a preloaded HF cache.
## Notes
- First run will download the BLIP model from Hugging Face.
- Video captioning uses OpenCV to sample frames.