Spaces:
Sleeping
Sleeping
| title: AI Video Captioner | |
| emoji: π¬ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 4.44.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # AI Video Captioner | |
| Paste a direct video URL (under 2 minutes) and get an AI-generated caption in | |
| 4 styles: formal, sarcastic, tech-flavored humor, and everyday humor. Each | |
| caption is drafted, graded by an LLM judge, and refined before being shown. | |
| ## Required secrets | |
| Set these under **Settings β Variables and secrets** on the Space (not in any | |
| file in the repo): | |
| - `FIREWORKS_API_KEY` (required) β used for scene analysis and caption generation | |
| - `OPENROUTER_API_KEY` (optional) β used for audio transcription; if omitted, | |
| captions are generated from visual frames only | |
| ## Optional variables | |
| - `SCENE_MODEL`, `CAPTION_MODEL`, `JUDGE_MODEL`, `REFINE_MODEL` β model names | |
| on Fireworks (default to a `minimax-m3`-based setup) | |
| - `MAX_RETRIES` (default 3), `MAX_REFINE_ITERATIONS` (default 1), | |
| `ENABLE_JUDGE` (default true), `MAX_DURATION_SECONDS` (default 120) | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |