Spaces:
Sleeping
Sleeping
Commit
Β·
6db5c25
1
Parent(s):
c382b2a
minor changes
Browse files- app.py +5 -5
- src/assets/css_html_js.py +3 -13
app.py
CHANGED
|
@@ -33,7 +33,7 @@ ALL_COLUMNS_MAPPING = {
|
|
| 33 |
"weight_class": "Weight Class ποΈ",
|
| 34 |
#
|
| 35 |
"backend.name": "Backend π",
|
| 36 |
-
"backend.torch_dtype": "
|
| 37 |
"optimizations": "Optimizations π οΈ",
|
| 38 |
#
|
| 39 |
"generate.throughput(tokens/s)": "Throughput (tokens/s) β¬οΈ",
|
|
@@ -279,11 +279,11 @@ with demo:
|
|
| 279 |
)
|
| 280 |
with gr.Column(scale=1):
|
| 281 |
datatype_checkboxes = gr.CheckboxGroup(
|
| 282 |
-
label="
|
| 283 |
choices=["float32", "float16"],
|
| 284 |
value=["float32", "float16"],
|
| 285 |
-
info="βοΈ Select the load
|
| 286 |
-
elem_id="
|
| 287 |
)
|
| 288 |
with gr.Column(scale=2):
|
| 289 |
optimizations_checkboxes = gr.CheckboxGroup(
|
|
@@ -301,7 +301,7 @@ with demo:
|
|
| 301 |
)
|
| 302 |
|
| 303 |
with gr.TabItem("π About β", id=4):
|
| 304 |
-
gr.HTML(ABOUT_TEXT)
|
| 305 |
|
| 306 |
demo.load(
|
| 307 |
change_tab,
|
|
|
|
| 33 |
"weight_class": "Weight Class ποΈ",
|
| 34 |
#
|
| 35 |
"backend.name": "Backend π",
|
| 36 |
+
"backend.torch_dtype": "Dtype π₯",
|
| 37 |
"optimizations": "Optimizations π οΈ",
|
| 38 |
#
|
| 39 |
"generate.throughput(tokens/s)": "Throughput (tokens/s) β¬οΈ",
|
|
|
|
| 279 |
)
|
| 280 |
with gr.Column(scale=1):
|
| 281 |
datatype_checkboxes = gr.CheckboxGroup(
|
| 282 |
+
label="Dtypes π₯",
|
| 283 |
choices=["float32", "float16"],
|
| 284 |
value=["float32", "float16"],
|
| 285 |
+
info="βοΈ Select the load dtypes",
|
| 286 |
+
elem_id="dtype-checkboxes",
|
| 287 |
)
|
| 288 |
with gr.Column(scale=2):
|
| 289 |
optimizations_checkboxes = gr.CheckboxGroup(
|
|
|
|
| 301 |
)
|
| 302 |
|
| 303 |
with gr.TabItem("π About β", id=4):
|
| 304 |
+
gr.HTML(ABOUT_TEXT, elem_classes="html-text")
|
| 305 |
|
| 306 |
demo.load(
|
| 307 |
change_tab,
|
src/assets/css_html_js.py
CHANGED
|
@@ -2,9 +2,8 @@ custom_css = """
|
|
| 2 |
.markdown-text {
|
| 3 |
font-size: 16px !important;
|
| 4 |
}
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
font-size: 18px !important;
|
| 8 |
}
|
| 9 |
|
| 10 |
#citation-button span {
|
|
@@ -20,14 +19,9 @@ custom_css = """
|
|
| 20 |
transform: scale(1.3);
|
| 21 |
}
|
| 22 |
|
| 23 |
-
#search-bar-table-box > div:first-child {
|
| 24 |
-
background: none;
|
| 25 |
-
border: none;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
table td:first-child,
|
| 29 |
table th:first-child {
|
| 30 |
-
max-width:
|
| 31 |
overflow: auto;
|
| 32 |
white-space: nowrap;
|
| 33 |
}
|
|
@@ -38,10 +32,6 @@ table th:first-child {
|
|
| 38 |
.A100-tabs button {
|
| 39 |
font-size: 20px;
|
| 40 |
}
|
| 41 |
-
.plot-container > div:first-child {
|
| 42 |
-
width: 100%;
|
| 43 |
-
height: 100%;
|
| 44 |
-
}
|
| 45 |
"""
|
| 46 |
|
| 47 |
custom_js = """
|
|
|
|
| 2 |
.markdown-text {
|
| 3 |
font-size: 16px !important;
|
| 4 |
}
|
| 5 |
+
.html-text {
|
| 6 |
+
font-size: 16px !important;
|
|
|
|
| 7 |
}
|
| 8 |
|
| 9 |
#citation-button span {
|
|
|
|
| 19 |
transform: scale(1.3);
|
| 20 |
}
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
table td:first-child,
|
| 23 |
table th:first-child {
|
| 24 |
+
max-width: 200px;
|
| 25 |
overflow: auto;
|
| 26 |
white-space: nowrap;
|
| 27 |
}
|
|
|
|
| 32 |
.A100-tabs button {
|
| 33 |
font-size: 20px;
|
| 34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"""
|
| 36 |
|
| 37 |
custom_js = """
|