Mahaswad — Maharashtrian Recipe Generator
说明与用途
Mahaswad 是一个本地、隐私友好的 AI 食谱生成器,专注于马哈拉施特拉邦传统菜肴,能够即时将现有食材匹配到正宗菜品,并提供分步烹饪说明、双语输出和厨师笔记,全部离线运行。
问题
A user with a random pantry struggles to find authentic Maharashtrian dishes without ad‑heavy sites or generic AI tools.
结果
Mahaswad delivers authentic Maharashtrian recipes offline, eliminating cloud costs and preserving privacy.
工作流
- 1. User enters available ingredients in Streamlit UI.
- 2. UI sends POST to FastAPI /generate-recipe.
- 3. FastAPI constructs system prompt, calls Ollama chat with gemma2:2b, temperature=0.6, num_predict=1024.
- 4. Response JSON is cleaned of scratchpad tags via regex.
- 5. Streamlit displays dish match, instructions, required additions, language option, and chef note.
证据
Mahaswad (महासवाद), a 100% local, privacy-friendly AI recipe generator dedicated to traditional Maharashtrian cuisine.
Uses gemma2:2b via Ollama. No API keys, no cloud, no cost.
FastAPI backend exposes a RESTful /generate-recipe endpoint that structures regional chef system prompts, regulates inference parameters (temperature=0.6, num_predict=1024), and uses regex cleaning to strip out scratchpad reasoning tags before serving structured JSON responses.
Streamlit Frontend (app.py): Provides a clean, responsive web interface for entering ingredients, selecting meal categories (Breakfast, Main Course, Snack, Dessert), choosing regional styles, and toggling output languages.
- 记录日期: 2026-10-03T10:56:26.112Z