{% extends "base.html" %} {% block title %}Dashboard - Fake News Detector{% endblock %} {% block content %}

Dashboard

Welcome back, {{ user.first_name or 'User' }}!

{{ user.role.title() }}
{{ total_predictions }}
Total Analyses
{{ real_count }}
Real News
{{ fake_count }}
Fake News
{{ "%.1f"|format((real_count / (total_predictions or 1)) * 100) }}%
Accuracy Rate
Weekly Analysis Trend
Detection Summary
Real News {{ real_count }}
Fake News {{ fake_count }}
Recent Analysis
View All
{% if recent_predictions %}
{% for prediction in recent_predictions %} {% endfor %}
Article Preview Result Confidence Date Action
{{ prediction.article_text[:100] }}...
{{ prediction.prediction.title() }}
{{ (prediction.confidence * 100)|round }}%
{{ prediction.created_at.strftime('%m/%d/%Y %H:%M') }}
{% else %}
No Analysis Yet

Start analyzing news articles to see your activity here.

Analyze First Article
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}