Empty Fridge is a Streamlit application powered by Google's Gemini models that looks at photos of your ingredients (no matter how scarce and messy) and hallucinates (in a good way) a legitimate recipe you can actually cook.
-
AI Vision Chef: Upload a photo of your messy pantry or fridge shelf. The app identifies the ingredients for you (so you don't have to type them out).
-
Creative Recipe Generation: Uses the ingredients you have + your cravings (e.g., "Comfort Food", "Thai") to get a structured, easy-to-follow recipe.
-
Nutritionist Mode: An AI agent analyzes the generated recipe to give you a rough health breakdown (Calories, Protein, Carbs).
-
Barista: Suggests the perfect beverage pairing (alcoholic or non-alcoholic) based on the flavor profile of the dish.
-
PDF Export: Generates a clean, downloadable PDF of the recipe so you can save it for later.
-
Python (backend)
-
Streamlit (frontend)
-
Google Gemini API (Specifically
gemini-2.5-flash-litefor speed and vision capabilities) -
xhtml2pdf (For generating the PDF reports)
If you don't want to mess with local environments, I included a Jupyter Notebook (Empty Fridge.ipynb) that handles everything.
-
Open the notebook in Colab.
-
Add your Gemini API Key when prompted in the app sidebar.
-
The notebook uses
ngrokto tunnel the Streamlit app so you can view it in your browser.
-
Clone the repo.
-
Install requirements:
pip install -q -U google-generativeai streamlit fpdf2 Pillow xhtml2pdf -
Run the app:
streamlit run app.py