tabedini commited on
Commit
5c63d15
·
verified ·
1 Parent(s): c0d4ed9

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +12 -17
utils.py CHANGED
@@ -12,57 +12,53 @@ custom_css = """
12
  body, .gradio-container, .gr-button, .gr-input, .gr-slider, .gr-dropdown, .gr-markdown {
13
  font-family: 'Vazirmatn', sans-serif !important;
14
  }
15
-
16
  .markdown-text {
17
  font-size: 16px !important;
18
  }
19
-
20
  #models-to-add-text {
21
  font-size: 18px !important;
22
  }
23
-
24
  #citation-button span {
25
  font-size: 16px !important;
26
  }
27
-
28
  #citation-button textarea {
29
  font-size: 16px !important;
30
  }
31
-
32
  #citation-button > label > button {
33
  margin: 6px;
34
  transform: scale(1.3);
35
  }
36
-
37
  #leaderboard-table {
38
- margin-top: 15px
 
 
 
 
 
 
39
  }
40
-
41
  #leaderboard-table-lite {
42
  margin-top: 15px
43
  }
44
-
45
  #search-bar-table-box > div:first-child {
46
  background: none;
47
  border: none;
48
  }
49
-
50
  #search-bar {
51
  padding: 0px;
52
  }
53
-
54
- /* Limit the width of the first AutoEvalColumn so that names don't expand too much */
55
- #leaderboard-table td:nth-child(2),
56
- #leaderboard-table th:nth-child(2) {
57
  max-width: 400px;
58
  overflow: auto;
59
  white-space: nowrap;
60
  }
61
-
 
 
62
  .tab-buttons button {
63
  font-size: 20px;
64
  }
65
-
66
  #scale-logo {
67
  border-style: none !important;
68
  box-shadow: none;
@@ -71,7 +67,6 @@ body, .gradio-container, .gr-button, .gr-input, .gr-slider, .gr-dropdown, .gr-ma
71
  margin-right: auto;
72
  max-width: 600px;
73
  }
74
-
75
  #scale-logo .download {
76
  display: none;
77
  }
 
12
  body, .gradio-container, .gr-button, .gr-input, .gr-slider, .gr-dropdown, .gr-markdown {
13
  font-family: 'Vazirmatn', sans-serif !important;
14
  }
 
15
  .markdown-text {
16
  font-size: 16px !important;
17
  }
 
18
  #models-to-add-text {
19
  font-size: 18px !important;
20
  }
 
21
  #citation-button span {
22
  font-size: 16px !important;
23
  }
 
24
  #citation-button textarea {
25
  font-size: 16px !important;
26
  }
 
27
  #citation-button > label > button {
28
  margin: 6px;
29
  transform: scale(1.3);
30
  }
 
31
  #leaderboard-table {
32
+ margin-top: 15px;
33
+ text-align: center;
34
+ }
35
+ #leaderboard-table td,
36
+ #leaderboard-table th {
37
+ text-align: center;
38
+ vertical-align: middle;
39
  }
 
40
  #leaderboard-table-lite {
41
  margin-top: 15px
42
  }
 
43
  #search-bar-table-box > div:first-child {
44
  background: none;
45
  border: none;
46
  }
 
47
  #search-bar {
48
  padding: 0px;
49
  }
50
+ #leaderboard-table td:nth-child(0),
51
+ #leaderboard-table th:nth-child(0) {
 
 
52
  max-width: 400px;
53
  overflow: auto;
54
  white-space: nowrap;
55
  }
56
+ table > thead {
57
+ white-space: normal;
58
+ }
59
  .tab-buttons button {
60
  font-size: 20px;
61
  }
 
62
  #scale-logo {
63
  border-style: none !important;
64
  box-shadow: none;
 
67
  margin-right: auto;
68
  max-width: 600px;
69
  }
 
70
  #scale-logo .download {
71
  display: none;
72
  }