DistilBERT_Sentiment / index.html
92amineee's picture
Update index.html
f87c244 verified
Raw History Blame Contribute Delete
4.55 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DistilBERT Sentiment Classifier</title>
<style>
:root {
--bg-color: #0f172a;
--card-bg: #1e293b;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--accent: #38bdf8;
--accent-hover: #0284c7;
--border: #334155;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 20px;
padding: 40px;
max-width: 800px;
width: 100%;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}
.header {
margin-bottom: 30px;
}
.header h1 {
font-size: 2.2rem;
display: flex;
align-items: center;
gap: 12px;
color: #fff;
}
.header p {
color: var(--text-muted);
margin-top: 8px;
font-size: 1.05rem;
}
.section-title {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
margin-bottom: 12px;
font-weight: 700;
}
.classes-container {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 30px;
}
.badge {
background: rgba(56, 189, 248, 0.1);
color: var(--accent);
border: 1px solid rgba(56, 189, 248, 0.3);
padding: 8px 16px;
border-radius: 9999px;
font-size: 0.9rem;
font-weight: 600;
}
.inference-box {
background: rgba(15, 23, 42, 0.6);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
margin-bottom: 30px;
}
.inference-item {
margin-bottom: 12px;
}
.inference-item:last-child {
margin-bottom: 0;
}
.inference-item span {
display: block;
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 4px;
}
.inference-item strong {
color: #fff;
font-size: 1rem;
}
.workflow {
background: rgba(255, 255, 255, 0.02);
border: 1px dashed var(--border);
padding: 20px;
border-radius: 12px;
margin-bottom: 30px;
}
.workflow-steps {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
color: var(--text-muted);
font-size: 0.95rem;
margin-top: 8px;
}
.workflow-steps span {
color: var(--text-main);
font-weight: 500;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 14px 24px;
background: var(--accent);
color: #0f172a;
font-weight: 700;
text-decoration: none;
border-radius: 10px;
transition: all 0.2s ease;
}
.button:hover {
background: var(--accent-hover);
color: #fff;
transform: translateY(-2px);
}
</style>
</head>
<body>
<div class="card">
<div class="header">
<h1>🎬 DistilBERT Sentiment Classifier</h1>
<p>DistilBERT fine-tuned for sentiment analysis on Rotten Tomatoes.</p>
</div>
<div class="section-title">Target Classes</div>
<div class="classes-container">
<span class="badge">NEGATIVE</span>
<span class="badge">POSITIVE</span>
</div>
<div class="section-title">Example Inference</div>
<div class="inference-box">
<div class="inference-item">
<span>Accuracy</span>
<strong>0.8433395872420263</strong>
</div>
<div class="inference-item" style="margin-top: 16px;">
<span>Evaluation loss</span>
<strong>0.42508700489997864</strong>
</div>
<div class="section-title">MLOps Pipeline</div>
<div class="workflow">
<div class="workflow-steps">
Dataset βž” <span>Tokenization</span> βž” <span>Fine-tuning</span> βž” <span>Evaluation</span> βž” <span>HF Hub</span> βž” <span>Space</span>
</div>
</div>
<a class="button" href="https://huggingface.co/92amineee/sentiment-versioning-demo" target="_blank">
πŸ€— View Model Card on Hugging Face
</a>
</div>
</body>
</html>