Inspiration
Cooking at home can be both fun and challenging, especially when trying to decide what to make with the ingredients available. I was inspired to create Delicious Recommender to simplify meal planning, reduce food waste, and inspire culinary creativity by providing personalized recipe suggestions based on the ingredients users have on hand.
What it does
Delicious Recommender allows users to input their available kitchen ingredients and select their preferred cuisine. The app then generates tailored recipe recommendations that match the provided ingredients and cuisine preferences. Users can explore multiple recipes, learn how to make them through integrated search links, and load more options to discover a variety of delicious dishes.
How I built it
I built Delicious Recommender using Streamlit for the frontend interface, leveraging its simplicity and interactivity to create a seamless user experience. The recipe data is stored in a structured database (recipe_database.py), which the app accesses to filter and recommend recipes based on user inputs. Additionally, I integrated URL encoding with urllib.parse to generate dynamic search links for each recipe. While the current version utilizes basic filtering algorithms, future enhancements will incorporate AI-powered recommendations using the OpenAI API to provide more intelligent and personalized suggestions.
Challenges I ran into
One of the main challenges was handling the emoji characters appended to recipe names, which interfered with URL encoding for search queries. I had to implement string manipulation techniques to remove these emojis when generating search links. Additionally, managing state in Streamlit to handle recipe displays and "Load More" functionality required careful consideration to ensure a smooth user experience without performance issues.
Accomplishments that I am proud of
I'm proud of creating an intuitive and user-friendly interface that effectively connects users with recipes based on their available ingredients. Implementing dynamic recipe recommendations and ensuring seamless navigation through multiple recipe suggestions were significant achievements. Additionally, successfully integrating emoji enhancements to make the app visually appealing while maintaining functionality showcases the app's attention to detail.
What I learned
Through this project, I deepened my understanding of Streamlit's capabilities for building interactive web applications. I gained valuable experience in managing state within the app, optimizing filtering algorithms for recipe recommendations, and handling text processing challenges such as removing emojis from strings. Furthermore, exploring potential AI integrations broadened my perspective on enhancing app functionalities with advanced technologies.
What's next for Delicious Recommender
Future developments for Delicious Recommender include integrating the OpenAI API to enhance recipe recommendations with AI-driven insights, such as suggesting ingredient substitutions and providing detailed cooking instructions. I also plan to expand the recipe database to cover more cuisines and dietary preferences, implement user authentication for personalized meal planning, and incorporate feedback mechanisms to continuously improve recommendation accuracy. Additionally, optimizing the app's performance and exploring mobile-friendly designs are on the roadmap to make Delicious Recommender even more accessible and useful for users worldwide.
Built With
- openai
- python
Log in or sign up for Devpost to join the conversation.