File size: 4,545 Bytes
7ed37a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f87c244
 
7ed37a8
 
f87c244
 
7ed37a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!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>