+
Welcome to film recommendation system.
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+
+ {% for message in messages %}
+ - {{ message }}
+ {% endfor %}
+
+ {% endif %}
+ {% endwith %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/dashboard.html b/templates/dashboard.html
new file mode 100644
index 0000000..755a296
--- /dev/null
+++ b/templates/dashboard.html
@@ -0,0 +1,248 @@
+
+
+
+
+
{{ movie.title }}
+
+
Release Date: {{ movie.release_date }}
+
Genres: {{ ", ".join(genre_names) }}
+
Rating Count: {{ movie.rating_count }}
+
Average Rating: {{ movie.average_rating }}
+
Actors: {{ movie.actor }}
+
+
+
+
+
+
Average Rating:
{{ movie.average_rating }}
+
by {{ movie.rating_count }} user(s)
+
+
+ {% for rating in range(5, 0, -1) %}
+
{{ rating }} stars: {{ (rating_distribution[rating] * 100) | round(1) }}%
+
+ {% endfor %}
+
+
+
+
+ {% if user_type == 'P' %}
+
+
User Preference Analysis
+
+
+
+
By Gender
+
+ {% for gender, data in user_analysis.gender_analysis.items() %}
+ - {{ 'Male' if gender == 'M' else 'Female' }}: {{ data.average }} ({{ data.count }} ratings)
+ {% endfor %}
+
+
+
+
+
+
+
+
+
By Age
+
+ {% for age_range, data in user_analysis.age_analysis.items() %}
+ - {{ age_range }} years: {{ data.average }} ({{ data.count }} ratings)
+ {% endfor %}
+
+
+
+
+
+
+
+
+
By Occupation
+
+ {% for occupation, data in user_analysis.occupation_analysis.items() %}
+ - {{ occupation }}: {{ data.average }} ({{ data.count }} ratings)
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+ {% endif %}
+
+
+
+
🌟More Like This
+
+ {% for similar_movie in similar_movies %}
+
+
+
Average Rating: {{ similar_movie.average_rating }}
+
Release Date: {{ similar_movie.release_date }}
+
Genres: {{ similar_movie.genres }}
+
Rating Count: {{ similar_movie.rating_count }}
+
Actors: {{ similar_movie.actor }}
+
+ {% endfor %}
+
+
+
+
+ {% include 'recommendations.html' %}
+
+
+
+{% if user_analysis %}
+
+{% endif %}
+
diff --git a/templates/navbar.html b/templates/navbar.html
new file mode 100644
index 0000000..04e4445
--- /dev/null
+++ b/templates/navbar.html
@@ -0,0 +1,161 @@
+
+
+