Anonumous commited on
Commit
16a8b82
·
1 Parent(s): 0d67035

Update search

Browse files
Files changed (3) hide show
  1. app.py +4 -3
  2. src/display.py +22 -2
  3. uv.lock +1 -1
app.py CHANGED
@@ -172,12 +172,13 @@ def build_demo() -> gr.Blocks:
172
 
173
  with gr.Tabs(elem_classes="tab-buttons"):
174
  with gr.TabItem("🏅 Лидерборд", elem_id="llm-benchmark-tab-table", id=0):
175
- gr.Markdown("### Таблица результатов моделей DeathMath")
176
 
177
  search_box = gr.Textbox(
178
- label="Поиск по названию модели",
179
- placeholder="Введите название модели...",
180
  elem_classes=["search-box-centered"],
 
181
  )
182
 
183
  all_cols = leaderboard_df.columns.tolist()
 
172
 
173
  with gr.Tabs(elem_classes="tab-buttons"):
174
  with gr.TabItem("🏅 Лидерборд", elem_id="llm-benchmark-tab-table", id=0):
175
+ gr.Markdown("### Таблица результатов моделей DeathMath", elem_classes=["centered-title"])
176
 
177
  search_box = gr.Textbox(
178
+ placeholder="🔍 Поиск по названию модели...",
179
+ show_label=False,
180
  elem_classes=["search-box-centered"],
181
+ container=False,
182
  )
183
 
184
  all_cols = leaderboard_df.columns.tolist()
src/display.py CHANGED
@@ -214,6 +214,11 @@ h1, h2, h3, h4, h5, h6 {
214
  color: var(--foreground) !important;
215
  }
216
 
 
 
 
 
 
217
  /* ========================================
218
  Tab Buttons
219
  ======================================== */
@@ -283,12 +288,20 @@ h1, h2, h3, h4, h5, h6 {
283
  margin: 0 auto 24px auto;
284
  }
285
 
 
 
 
 
 
 
 
 
286
  .search-box-centered input,
287
  .search-box-centered textarea {
288
  width: 100%;
289
  padding: 12px 16px !important;
290
  font-size: 15px !important;
291
- background: transparent !important;
292
  border: 1px solid var(--border) !important;
293
  border-radius: var(--radius) !important;
294
  color: var(--foreground) !important;
@@ -296,6 +309,11 @@ h1, h2, h3, h4, h5, h6 {
296
  text-align: center;
297
  }
298
 
 
 
 
 
 
299
  .search-box-centered input:focus,
300
  .search-box-centered textarea:focus {
301
  border-color: var(--ring) !important;
@@ -305,8 +323,10 @@ h1, h2, h3, h4, h5, h6 {
305
 
306
  .search-box-centered input::placeholder,
307
  .search-box-centered textarea::placeholder {
308
- color: var(--muted-foreground) !important;
309
  text-align: center;
 
 
310
  }
311
 
312
  /* ========================================
 
214
  color: var(--foreground) !important;
215
  }
216
 
217
+ .centered-title {
218
+ text-align: center !important;
219
+ margin-bottom: 8px;
220
+ }
221
+
222
  /* ========================================
223
  Tab Buttons
224
  ======================================== */
 
288
  margin: 0 auto 24px auto;
289
  }
290
 
291
+ .search-box-centered,
292
+ .search-box-centered > *,
293
+ .search-box-centered .gr-box,
294
+ .search-box-centered label {
295
+ background: transparent !important;
296
+ border: none !important;
297
+ }
298
+
299
  .search-box-centered input,
300
  .search-box-centered textarea {
301
  width: 100%;
302
  padding: 12px 16px !important;
303
  font-size: 15px !important;
304
+ background: var(--background) !important;
305
  border: 1px solid var(--border) !important;
306
  border-radius: var(--radius) !important;
307
  color: var(--foreground) !important;
 
309
  text-align: center;
310
  }
311
 
312
+ .dark .search-box-centered input,
313
+ .dark .search-box-centered textarea {
314
+ background: var(--card) !important;
315
+ }
316
+
317
  .search-box-centered input:focus,
318
  .search-box-centered textarea:focus {
319
  border-color: var(--ring) !important;
 
323
 
324
  .search-box-centered input::placeholder,
325
  .search-box-centered textarea::placeholder {
326
+ color: var(--primary) !important;
327
  text-align: center;
328
+ font-weight: 500;
329
+ opacity: 0.85;
330
  }
331
 
332
  /* ========================================
uv.lock CHANGED
@@ -364,7 +364,7 @@ wheels = [
364
 
365
  [[package]]
366
  name = "deathmatch-leaderboard"
367
- version = "0.1.0"
368
  source = { editable = "." }
369
  dependencies = [
370
  { name = "click" },
 
364
 
365
  [[package]]
366
  name = "deathmatch-leaderboard"
367
+ version = "2.0.0"
368
  source = { editable = "." }
369
  dependencies = [
370
  { name = "click" },