Welcome to the Restaurant Rating Predictor project! This web app lets you predict the rating of a restaurant based on different features like cuisines, price range, and more. It's built using Flask, a trained machine learning model, and some spicy front-end flair! 🌶️
- Enter details about the restaurant (like its city, cuisines, average cost, etc.) in the form on the homepage.
- Hit the Predict button.
- Our model will analyze the inputs and predict the restaurant's rating. 🎯
git clone https://github.com/yourusername/restaurant-rating-predictor.git
cd restaurant-rating-predictor
pip install -r requirements.txt
The model file restaurant_rating_predictor.pkl
is too big to be included here (GitHub wasn’t too happy about the size 😅). So, make sure to upload your trained model to the root folder. If you don’t have one yet, no worries! Train a model using your own dataset and save it like so:
import joblib
# Assuming 'model' is your trained ML model
joblib.dump(model, 'restaurant_rating_predictor.pkl')
Make sure your dataset file (e.g., Dataset.csv) is correctly placed and the path in your code matches the file location. Update the path if necessary in the script where you load the dataset.
python app.py
Fire up your browser and head to http://127.0.0.1:5000/
- User Input Form: Enter key restaurant details to predict ratings.
- Dark Mode: Because who doesn’t love a sleek dark theme? 🌙
- Result Page: Displays the predicted rating with a cool interface.
- Social Media Links: Connect with me on LinkedIn, GitHub, and Twitter! 🧑💻
.
|-- app.py
|-- requirements.txt
|-- restaurant_rating_predictor.pkl (you need to upload this one!)
|-- static
| |-- styles.css
| |-- linkedin.png
| |-- github.png
| |-- twitter.png
|-- templates
|-- index.html
|-- result.html
- Flask
- Pandas
- Scikit-learn
- Joblib
You can install them with:
pip install -r requirements.txt
Let’s get social! Follow me or check out my other projects:
Now go predict some delicious restaurant ratings! 😋