mistpe commited on
Commit
210d4e9
·
verified ·
1 Parent(s): 0e2d960

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +300 -0
index.html ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AI Model Comparison Interface</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
16
+ background: linear-gradient(135deg, #F0F4FF 0%, #E6E9FF 100%);
17
+ min-height: 100vh;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ padding: 1.5rem;
22
+ color: #1E293B;
23
+ }
24
+
25
+ .container {
26
+ width: 95%;
27
+ max-width: 1400px;
28
+ background: rgba(255, 255, 255, 0.95);
29
+ border-radius: 24px;
30
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
31
+ overflow: hidden;
32
+ backdrop-filter: blur(10px);
33
+ }
34
+
35
+ .header {
36
+ padding: 1.5rem 2rem;
37
+ background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
38
+ border-bottom: 1px solid #E2E8F0;
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ gap: 2rem;
43
+ }
44
+
45
+ .title-group {
46
+ flex-shrink: 1;
47
+ min-width: 0;
48
+ }
49
+
50
+ .title {
51
+ font-size: 1.5rem;
52
+ font-weight: 700;
53
+ margin-bottom: 0.25rem;
54
+ background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
55
+ -webkit-background-clip: text;
56
+ -webkit-text-fill-color: transparent;
57
+ }
58
+
59
+ .subtitle {
60
+ color: #64748B;
61
+ font-size: 0.9rem;
62
+ }
63
+
64
+ .model-selector {
65
+ display: flex;
66
+ gap: 0.75rem;
67
+ flex-shrink: 0;
68
+ }
69
+
70
+ .model-button {
71
+ position: relative;
72
+ padding: 0.75rem 1.25rem;
73
+ background: white;
74
+ border: 1px solid #E2E8F0;
75
+ border-radius: 12px;
76
+ cursor: pointer;
77
+ transition: all 0.3s ease;
78
+ display: flex;
79
+ align-items: center;
80
+ gap: 0.75rem;
81
+ min-width: 200px;
82
+ }
83
+
84
+ .model-button:hover:not(.active) {
85
+ background: #F8FAFC;
86
+ border-color: #CBD5E1;
87
+ }
88
+
89
+ .model-button.active {
90
+ background: #F0F7FF;
91
+ border-color: #3B82F6;
92
+ }
93
+
94
+ .model-icon {
95
+ flex-shrink: 0;
96
+ }
97
+
98
+ .model-icon svg {
99
+ width: 20px;
100
+ height: 20px;
101
+ stroke: #64748B;
102
+ stroke-width: 2;
103
+ transition: stroke 0.3s ease;
104
+ }
105
+
106
+ .model-button.active .model-icon svg {
107
+ stroke: #3B82F6;
108
+ }
109
+
110
+ .model-info {
111
+ text-align: left;
112
+ }
113
+
114
+ .model-title {
115
+ font-weight: 600;
116
+ font-size: 0.9rem;
117
+ color: #1E293B;
118
+ margin-bottom: 0.125rem;
119
+ }
120
+
121
+ .model-subtitle {
122
+ font-size: 0.75rem;
123
+ color: #64748B;
124
+ }
125
+
126
+ .content {
127
+ height: calc(90vh - 90px);
128
+ position: relative;
129
+ background: white;
130
+ }
131
+
132
+ .iframe-container {
133
+ position: absolute;
134
+ top: 0;
135
+ left: 0;
136
+ width: 100%;
137
+ height: 100%;
138
+ display: none;
139
+ padding: 0.5rem;
140
+ }
141
+
142
+ .iframe-container.active {
143
+ display: block;
144
+ animation: fadeIn 0.3s ease;
145
+ }
146
+
147
+ iframe {
148
+ width: 100%;
149
+ height: 100%;
150
+ border: none;
151
+ border-radius: 12px;
152
+ background: white;
153
+ }
154
+
155
+ @media (max-width: 768px) {
156
+ .container {
157
+ padding: 0;
158
+ }
159
+
160
+ .header {
161
+ padding: 1rem;
162
+ flex-direction: column;
163
+ gap: 1rem;
164
+ }
165
+
166
+ .title-group {
167
+ text-align: center;
168
+ }
169
+
170
+ .model-selector {
171
+ width: 100%;
172
+ justify-content: space-between;
173
+ gap: 0.1rem;
174
+ }
175
+
176
+ .model-button {
177
+ width: 17%;
178
+ min-width: unset;
179
+ padding: 0.75rem 0.5rem;
180
+ flex-direction: column;
181
+ align-items: center;
182
+ justify-content: center;
183
+ }
184
+
185
+ .model-button:not(.active) .model-info {
186
+ display: none;
187
+ }
188
+
189
+ .model-button.active {
190
+ width: auto;
191
+ flex-direction: row;
192
+ padding: 0.75rem 1rem;
193
+ }
194
+
195
+ .model-icon {
196
+ margin: 0;
197
+ }
198
+
199
+ .content {
200
+ height: calc(90vh - 160px);
201
+ }
202
+ }
203
+
204
+ @keyframes fadeIn {
205
+ from { opacity: 0; transform: translateY(5px); }
206
+ to { opacity: 1; transform: translateY(0); }
207
+ }
208
+ </style>
209
+ </head>
210
+ <body>
211
+ <div class="container">
212
+ <header class="header">
213
+ <div class="title-group">
214
+ <h1 class="title">AI模型深度思维能力对比实验平台</h1>
215
+ <p class="subtitle">探索不同配置下的模型推理与问题解决能力</p>
216
+ </div>
217
+
218
+ <div class="model-selector">
219
+ <button class="model-button active" onclick="switchModel(0)">
220
+ <div class="model-icon">
221
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor">
222
+ <path d="M12 2a9 9 0 0 1 9 9c0 3.18-2.32 6.72-5.33 8.47a.2.2 0 0 1-.27-.19V16a4 4 0 0 0-6.8-2.87A4 4 0 0 0 10 20h4a2 2 0 0 1 2 2v.5a.2.2 0 0 1-.27.19A10.32 10.32 0 0 1 12 21a9 9 0 0 1 0-18z"/>
223
+ <path d="M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"/>
224
+ </svg>
225
+ </div>
226
+ <div class="model-info">
227
+ <div class="model-title">双模型深度思考</div>
228
+ <div class="model-subtitle">R1 + gpt-4o-mini</div>
229
+ </div>
230
+ </button>
231
+
232
+ <button class="model-button" onclick="switchModel(1)">
233
+ <div class="model-icon">
234
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor">
235
+ <path d="M6 3v12"/>
236
+ <path d="M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
237
+ <path d="M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
238
+ <path d="M15 6a9 9 0 0 0-9 9"/>
239
+ </svg>
240
+ </div>
241
+ <div class="model-info">
242
+ <div class="model-title">思维链引导</div>
243
+ <div class="model-subtitle">gpt-4o-mini + 提示词</div>
244
+ </div>
245
+ </button>
246
+
247
+ <button class="model-button" onclick="switchModel(2)">
248
+ <div class="model-icon">
249
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor">
250
+ <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/>
251
+ </svg>
252
+ </div>
253
+ <div class="model-info">
254
+ <div class="model-title">基准模型</div>
255
+ <div class="model-subtitle">标准 gpt-4o-mini</div>
256
+ </div>
257
+ </button>
258
+ </div>
259
+ </header>
260
+
261
+ <div class="content">
262
+ <div class="iframe-container active">
263
+ <iframe
264
+ src="https://mistpe-fastgpt.hf.space/chat/share?shareId=8m4krw4h6vy0kdqsi59ougyg"
265
+ allow="*">
266
+ </iframe>
267
+ </div>
268
+ <div class="iframe-container">
269
+ <iframe
270
+ src="https://mistpe-fastgpt.hf.space/chat/share?shareId=r7nbj4t788ewjk5myjiuyoo3"
271
+ allow="*">
272
+ </iframe>
273
+ </div>
274
+ <div class="iframe-container">
275
+ <iframe
276
+ src="https://mistpe-fastgpt.hf.space/chat/share?shareId=ynkbojkhm7dzokc518bw7vc3"
277
+ allow="*">
278
+ </iframe>
279
+ </div>
280
+ </div>
281
+ </div>
282
+
283
+ <script>
284
+ function switchModel(index) {
285
+ const buttons = document.querySelectorAll('.model-button');
286
+ const wasActive = buttons[index].classList.contains('active');
287
+
288
+ buttons.forEach(button => button.classList.remove('active'));
289
+
290
+ if (!wasActive) {
291
+ buttons[index].classList.add('active');
292
+ }
293
+
294
+ const iframes = document.querySelectorAll('.iframe-container');
295
+ iframes.forEach(iframe => iframe.classList.remove('active'));
296
+ iframes[index].classList.add('active');
297
+ }
298
+ </script>
299
+ </body>
300
+ </html>