Update utils.py
Browse files
utils.py
CHANGED
|
@@ -12,57 +12,52 @@ 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 |
-
|
| 55 |
-
|
| 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 +66,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 |
|
| 36 |
+
#leaderboard-table td,
|
| 37 |
+
#leaderboard-table th {
|
| 38 |
+
text-align: center;
|
| 39 |
+
vertical-align: middle;
|
| 40 |
+
}
|
| 41 |
#leaderboard-table-lite {
|
| 42 |
margin-top: 15px
|
| 43 |
}
|
|
|
|
| 44 |
#search-bar-table-box > div:first-child {
|
| 45 |
background: none;
|
| 46 |
border: none;
|
| 47 |
}
|
|
|
|
| 48 |
#search-bar {
|
| 49 |
padding: 0px;
|
| 50 |
}
|
| 51 |
|
| 52 |
+
table > thead {
|
| 53 |
+
white-space: normal;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
+
|
| 57 |
+
|
| 58 |
.tab-buttons button {
|
| 59 |
font-size: 20px;
|
| 60 |
}
|
|
|
|
| 61 |
#scale-logo {
|
| 62 |
border-style: none !important;
|
| 63 |
box-shadow: none;
|
|
|
|
| 66 |
margin-right: auto;
|
| 67 |
max-width: 600px;
|
| 68 |
}
|
|
|
|
| 69 |
#scale-logo .download {
|
| 70 |
display: none;
|
| 71 |
}
|