--- title: Cook With A LLM emoji: ๐Ÿฒ colorFrom: red colorTo: yellow sdk: gradio sdk_version: 6.15.2 python_version: '3.12' app_file: app.py pinned: false license: apache-2.0 --- # ๐Ÿฒ Cook With Me โ€” Multimodal Sous-Chef > *Snap your fridge. Pick a dish. Cook step by step. Check your progress with a photo.* A closed-loop multimodal cooking assistant built for the **Hugging Face Small Models / Big Adventures Hackathon (June 2026)**. --- ## How it works ``` ๐Ÿ“ธ Fridge photo โ”€โ”€โ–ถ [Vision Agent] identify ingredients โ”‚ โ–ผ [Recipe Planner] propose 3 dishes โ†’ full recipe JSON โ”‚ โ–ผ [Nutrition Engine] per-serving macros (lookup, no hallucination) โ”‚ โ–ผ ๐Ÿ“ธ Progress photo โ”€โ”€โ–ถ [Progress Validator] go / wait / fix verdict ``` 1. **Snap** your fridge or pantry โ€” the fine-tuned vision model identifies every ingredient. 2. **Pick** one of three AI-suggested dishes tailored to what you have. 3. **Cook** step by step with a generated recipe and per-serving nutrition info. 4. **Check** your progress by uploading a photo of your pan โ€” the model tells you *go*, *wait*, or *fix*. --- ## Models | Role | Model | Params | Runtime | |---|---|---|---| | Vision + Planner + Validator | `openbmb/MiniCPM-V-4.6` (fine-tuned) | ~4.6B | `transformers` / ZeroGPU | **Total: ~4.6B parameters** (โ‰ค 32B cap โœ“ โ€” significant headroom) The ingredient-identification model is **fine-tuned** on fridge/pantry photos for higher precision. --- ## Badges targeted | Badge | Status | How | |---|---|---| | ๐ŸŽฏ Well-Tuned | โœ“ | Fine-tuned MiniCPM-V-4.6 for ingredient detection, published to Hub | | ๐ŸŽจ Off-Brand | โœ“ | Recipe-card UI with custom CSS โ€” Lora serif, warm parchment palette | | ๐Ÿ“ก Sharing is Caring | โœ“ | Agent traces shared on Hub | | ๐Ÿ““ Field Notes | โœ“ | Blog post: "Building a closed-loop visual cooking coach" | --- ## Architecture highlights - **Single model, three roles:** MiniCPM-V-4.6 handles vision (ingredients + progress) *and* text planning (recipe JSON generation) โ€” no redundant model downloads. - **Closed-loop visual validation:** Flux generates step targets โ†’ user cooks โ†’ vision model compares โ€” a real agent loop, not a wrapper. - **Hallucination-free nutrition:** macros come from a lookup table, not LLM arithmetic. - **Robust JSON extraction:** multi-strategy parser handles markdown fences, single quotes, and trailing commas so generation failures degrade gracefully. --- ## Track **Chapter One โ€” Backyard AI** ยท "Build something for someone you actually know." Submission for the Hugging Face Hackathon ยท June 5โ€“15, 2026.