Feature: Implement Recommendation Logic and Enhance Home Page with ASP Banner
Overview
This pull request enhances the Assistance Systems Project by adding personalized recommendation functionality and updating the Home page with the ASP Banner. These improvements aim to provide users with customized health recommendations based on their input data and create a more visually appealing landing page.
Key Changes
-
Personalized Recommendations Integration:
- Recommendation Logic: Added a recommendation system using a pre-trained Random Forest model to evaluate the user's stroke risk based on their health information. Users receive a risk assessment ("High" or "Low") along with specific health recommendations.
- Data Handling: Moved user data processing to the Personalized Recommendations page, ensuring that user inputs are securely stored and used solely for generating recommendations.
-
Home Page Enhancement:
-
ASP Banner Addition: Included the
ASP_Banner.png
image at the top of the Home page to improve the visual presentation and provide a professional introduction to the application. - Improved Welcome Message: Updated the welcome text to clearly explain the application's features, helping users navigate through different sections effectively.
-
ASP Banner Addition: Included the
-
Navigation Update:
- Menu Renaming: Changed the navigation menu item from "Recommendations" to "Personalized Recommendations" for better clarity, making it clear to users where to find personalized advice.
-
Code Refactoring and Robustness:
- Error Handling: Improved error handling to manage cases where essential files like the preprocessor or recommendation model are missing, displaying clear messages to users.
-
Code Organization: Cleaned up the
app.py
file for better readability and maintainability, organizing sections logically and adding comments where necessary.
Conclusion
These updates improve the Assistance Systems Project by offering tailored health insights and a more attractive user interface. The addition of personalized recommendations and the ASP Banner make the application more user-friendly and effective.