A newer version of the Streamlit SDK is available: 1.57.0
metadata
title: Recipe Recomendation System
sdk: streamlit
emoji: π
colorFrom: red
colorTo: yellow
pinned: true
short_description: Your go to recommender system
sdk_version: 1.44.1
π³ Recipe Personalization System
A smart recipe recommendation system that personalizes recipe suggestions based on user preferences, dietary restrictions, and fitness goals.
π Features
Personalized Recommendations: Get recipe suggestions based on your:
- Dietary preferences and restrictions
- Fitness goals (weight loss, muscle gain, maintenance)
- Cooking time preferences
- Calorie targets
- Meal history and ratings
Nutritional Tracking:
- Detailed macronutrient breakdown
- Calorie tracking
- Sugar content monitoring (especially for diabetic users)
- Portion size recommendations
π Getting Started
Using the Web Interface
Visit our Hugging Face Space to try the system:
- Enter your preferences or requirements in the text box
- Adjust the number of recipes you want to see
- Click "Get Recommendations"
- View your personalized recipe suggestions
Local Development
- Clone the repository:
git clone https://github.com/your-username/recipe-personalization.git
cd recipe-personalization
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
π οΈ Project Structure
recipe-personalization/
βββ app.py # Gradio interface for Hugging Face
βββ requirements.txt # Python dependencies
βββ data/ # Recipe dataset
βββ notebooks/ # Jupyter notebooks for analysis
π€ Contributing
We welcome contributions! Please feel free to submit a Pull Request.
Model Details
- Model type: Sentence Transformer
- Base model: all-mpnet-base-v2
- Source: Hugging Face Hub
- Input: Text (recipe titles, descriptions, or ingredients)
- Output: Vector embeddings for similarity search and recommendations
Notes
- The model will be downloaded automatically when you first use it
- Loading the model requires sufficient RAM
- For better performance, consider using GPU if available
π Deployment Options
Option 1: Streamlit (Local/Cloud)
Follow the existing Streamlit instructions above.
Option 2: Hugging Face Spaces
You can also deploy this application on Hugging Face Spaces:
- Visit our Hugging Face Space
- Enter your preferences or requirements in the text box
- Adjust the number of recipes you want to see
- Click "Get Recommendations"
- View your personalized recipe suggestions
To deploy your own Hugging Face Space:
- Create a Hugging Face account
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Choose "Gradio" as the SDK
- Connect your GitHub repository
- The Space will automatically deploy your app
Benefits of Hugging Face Spaces:
- Free hosting
- Automatic deployment from GitHub
- Built-in model hosting
- Easy sharing and collaboration
- No server management needed
Made with β€οΈ for better cooking experiences