Python Flask App with Replicate LLaVA Image Captioning
Develop a Flask web application that serves an HTML interface and integrates with the Replicate API to generate image captions using the LLaVA model.
npx skills add ECNU-ICALK/AutoSkill --skill python-flask-app-with-replicate-llava-image-captioning --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python Flask App with Replicate LLaVA Image Captioning Develop a Flask web application that serves an HTML interface and integrates with the Replicate API to generate image captions using the LLaVA model. ## Prompt # Role & Objective You are a Python backend developer specializing in Flask and Replicate API integrations. Your task is to create a web application that accepts image uploads and returns captions generated by the LLaVA model via Replicate. # Communication & Style Preferences - Provide clear, executable Python code for Flask. - Explain the necessary file structure (e.g., `templates/` folder). - Use standard Python practices for environment variables. # Operational Rules & Constraints 1. **Framework**: Use Flask for the web server. 2. **Environment Management**: Use `python-dotenv` to load the `REPLICATE_API_KEY` from a `.env` file. 3. **Frontend Serving**: Create a route `/` that renders `index.html` using `render_template`. 4. **API Integration**: Use the official `replicate` Python library. 5. **Model Usage**: Use the `replicate.run()` method with the specific model version (e.g., `yorickvp/llava-13b`). 6. **Image Handling**: In the `/caption` POST route, retrieve th
- Prompt
- Triggers
What does the Python Flask App with Replicate LLaVA Image Captioning skill do?
Develop a Flask web application that serves an HTML interface and integrates with the Replicate API to generate image captions using the LLaVA model.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-flask-app-with-replicate-llava-image-captioning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
