IU in streamlit to register and have control of your shopping - each time you shop register it through a barcoder reader or camera device
Powered by AI system - You will be able to get help with the stack of a RAG system + reranking + LLM to make a daily and delicious dish with your oldest ingredients.
FOLLOW ALSO DE IMAGES OF THE APP AS A GUIDE
Tired of throwing away food from kitchen? Got too many items unused? This is a cool controller app that lets you:
- 📸 Register your shopping using your phone camera or barcode reader.
- 🔄 Keep track of your food items.
- 👨🍳 Ask the Chef Assistant to cook a daily dish with your oldest items.
- ➕ Plus, enjoy more features on top!
-
✏️ Edit
.env
file with the following APIs:- Twilio as TWILIO_AUTH_TOKEN and TWILIO_ACCOUNT_SID
- Groq as GROQ_API_KEY
- Edamam as APP_ID and EDAMAM_API_KEY
- Open Food Facts 'https://world.openfoodfacts.org/api/v2/product/{}.json'
- Ngrok (optional for sharing) as NGROK_API_KEY
-
🛒 Buy a Barcode Reader
-
💾 Install Requirements:
requirements.txt
- fined tuned YOLOv10 find collab notebook ---> I have already trained 70 categories using roboflow for image labeling and YOLOv10 for fine tuning.
YOLOv10_pho.ipynb
You should train your own products here the list that its already trained: ['olive', 'avocado', 'garlic', 'apricot', 'celery', 'aquarius', 'eggplant', 'bag of garlic', 'bag of potatoes', 'broccoli', 'zucchini', 'squid', 'carpaccio', 'onion', 'cherry', 'beer', 'star beer', 'sliced mushroom', 'chorizo', 'couscous', 'croissant', 'escalivada', 'spinach', 'noodles', 'flan', 'strawberry', 'gazpacho', 'vegetables', 'egg', 'ham', 'green beans', 'kiwi', 'shrimp', 'lettuce', 'lemon', 'sausage', 'apple', 'peach', 'mint', 'orange', 'bread', 'potato', 'turkey', 'chicken breast', 'pear', 'parsley', 'red pepper', 'green pepper', 'pineapple', 'pistachio', 'pizza', 'banana', 'poke salmon', 'leek', 'cheese', 'sliced cheese', 'bunch of grapes', 'sausages', 'salmon', 'tomato sauce', 'watermelon', 'shushi', 'pork tenderloin', 'special K', 'surimi', 'beef', 'tomato', 'white wine', 'Greek yogurt', 'carrot']
-
📂 **Create
food_db.json
make sure inside has the form {"food_db": []} ** -
🛠️ Modify Path Folders to fit your system
-
⚙️ Run Embeddings File:
extract_embeddings.py
- CPU: ⏳ Takes about 2 hours.
- GPU (A100): 🚀 Just 20 minutes in Google Colab.
-
📚 Make a Sample of the Recipe Book:
milvus_vector_db.py
- 🍳 Process 25% of the recipes (around 2 hours) to insert into the Milvus vector database.
-
🖥️ Run Streamlit:
streamlit run main.py
-
📝 Start Registering Your Shopping
-
🔧 Set Few Params (if needed)
-
🍲 Use the Chef Assistant:
- After registering your shopping, let the Chef Assistant create a daily dish based on the oldest products in your kitchen.
-
🌐 Use Ngrok to Share it easily with others.
-
🍽️ Batch Cooking Planner: - Make a better planner to assist with batch cooking, focusing on using older products first to minimize waste. - Take into account the amount of ingredients. By now it registers the product but only grab carbs, proteins, fat, fiber per 100gr.
-
🤖 User-Friendly Interface: - Better instructions and guidance to help users understand how to use the tool effectively.
-
🛠️ Code Improvement: - Refactor the code to make it more efficient, readable, and maintainable. - Consider using design patterns and best practices to improve code quality.