Show loading state on Generate button while recipe runs.
omkarpathak+1: Cursor
267850b
Disable the button and switch its label to Generating... until the request finishes.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add dual recipe backends with OpenAI as the default.
omkarpathak+1: Cursor
3aed1aa
Split local Transformers and OpenAI into recipe_backends; flip via RECIPE_BACKEND.
Co-authored-by: Cursor <cursoragent@cursor.com>
Stop tracking plans and Cursor config in git.
omkarpathak+1: Cursor
308fbd7
Keep plans/ and .cursor/ local-only via .gitignore.
Co-authored-by: Cursor <cursoragent@cursor.com>
Update recipe prompt example and steps formatting rule.
omkarpathak+1: Cursor
22581bf
Use a chicken, carrots, and soy sauce example with steps as a string array.
Co-authored-by: Cursor <cursoragent@cursor.com>
Relax pantry validation and clarify empty extras in the prompt.
omkarpathak+1: Cursor
c053782
Pantry staples no longer need to appear in ingredients_used, and the prompt forbids using "None" as a placeholder.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add a taste-focused line to the recipe system prompt.
omkarpathak+1: Cursor
08f340c
Co-authored-by: Cursor <cursoragent@cursor.com>
Revert "Show Epicure suggestions while the recipe is generating."
omkarpathak
9a7c54c
This reverts commit 5d0f2743f6df463ada77ae97ce1df884edac7604.
Show Epicure suggestions while the recipe is generating.
omkarpathak+1: Cursor
5d0f274
Stream suggested ingredients to the UI before LLM output and simplify the recipe system prompt.
Co-authored-by: Cursor <cursoragent@cursor.com>
Strip Qwen special tokens before parsing recipe JSON.
omkarpathak+1: Cursor
6067008
Fix invalid_json failures when the model appends chat tokens after the JSON object.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch to Qwen2.5-3B-Instruct with CPU inference support.
omkarpathak+1: Cursor
b040b38
Auto-detect cuda, MPS, or CPU and target 2 vCPU / 16 GB RAM Spaces.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch recipe generation to Qwen2.5-7B-Instruct.
omkarpathak+1: Cursor
191ff6a
Replace gpt-oss-20b to avoid MoE disk-offload issues on single-GPU Spaces.
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove explicit HF token from public model loading.
omkarpathak+1: Cursor
0858fbe
Drop _hf_token() since openai/gpt-oss-20b is public and the Space provides auth automatically.
Co-authored-by: Cursor <cursoragent@cursor.com>
Fix ingredients display and pin kernels for gpt-oss loading.
omkarpathak+1: Cursor
ed88467
Show ingredients as a bullet list and constrain kernels to a Transformers-compatible version.
Co-authored-by: Cursor <cursoragent@cursor.com>
Load gpt-oss-20b directly from the Hugging Face Hub.
omkarpathak+1: Cursor
9b43af1
Use the standard Transformers from_pretrained flow instead of a bucket sync.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch recipe generation to local gpt-oss via Transformers.
omkarpathak+1: Cursor
118e85f
Load omk42/gpt-oss instead of OpenAI and document GPU requirements for the Space.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use full Epicure Core vocabulary in ingredient dropdown.
omkarpathak+1: Cursor
db38920
Load all vocab items as filterable choices and cap selection at 10 ingredients.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add Epicure paper and model citations to the UI and README.
omkarpathak+1: Cursor
5495c12
Credit Radzikowski & Chen (2026) and link to arXiv and Kaikaku/epicure-core.
Co-authored-by: Cursor <cursoragent@cursor.com>
Simplify recipe system prompt rules.
omkarpathak+1: Cursor
2754b11
Remove redundant ingredient-preference lines now covered elsewhere in the prompt.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch recipe generation to OpenAI gpt-4o-mini.
omkarpathak+1: Cursor
7d86ffe
Use JSON response mode for reliable structured recipes and OPENAI_API_KEY instead of HF Inference.
Co-authored-by: Cursor <cursoragent@cursor.com>
Log full LLM response on invalid JSON.
omkarpathak+1: Cursor
cc6baa5
Increase debugging signal when the recipe JSON fails to parse.
Co-authored-by: Cursor <cursoragent@cursor.com>
Relax recipe ingredient rules and add failure logging.
omkarpathak+1: Cursor
7bed3a1
Prefer user ingredients without requiring all of them, and log structured warnings when recipe generation fails.
Co-authored-by: Cursor <cursoragent@cursor.com>
Switch default recipe model to Arch-Router-1.5B.
omkarpathak+1: Cursor
6de1891
Remove local debug logging from recipe generation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add HF Inference recipe generation and wire it to Generate.
omkarpathak+1: Cursor
048c08a
Epicure Core runs internally for fallback ingredients; the UI shows the LLM recipe, ingredients used, and steps.
Co-authored-by: Cursor <cursoragent@cursor.com>
Integrate Epicure Core nearest-neighbor shopping list suggestions.
omkarpathak+1: Cursor
2adf52d
Load the Core model from Hugging Face, suggest similar ingredients and closest modes from a basket centroid, and show both in the Generate UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
Ignore epicure-explorer nested repo.
omkarpathak+1: Cursor
4b0490d
Keep the separate epicure-explorer checkout out of meal-prep version control.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add ingredient suggestion logic and wire it to Generate.
omkarpathak+1: Cursor
036770b
Suggest complementary ingredients from meal templates based on what the user already has selected.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add ingredient multi-select form with generate button.
omkarpathak+1: Cursor
cbcb5aa
Replace the hello-world demo with a Gradio form for selecting ingredients and triggering recipe generation.
Co-authored-by: Cursor <cursoragent@cursor.com>