Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Merge remote-tracking branch 'origin/main'
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def filter_models(
|
|
92 |
print(f"After type filter: {filtered_df.shape}")
|
93 |
|
94 |
# Precision γγ£γ«γΏγͺγ³γ°
|
95 |
-
filtered_df = filtered_df[filtered_df["Precision"].isin(precision_query
|
96 |
print(f"After precision filter: {filtered_df.shape}")
|
97 |
|
98 |
# Model Size γγ£γ«γΏγͺγ³γ°
|
@@ -105,13 +105,11 @@ def filter_models(
|
|
105 |
print(f"After size filter: {filtered_df.shape}")
|
106 |
|
107 |
# Add Special Tokens γγ£γ«γΏγͺγ³γ°
|
108 |
-
filtered_df = filtered_df[filtered_df["Add Special Tokens"].isin(add_special_tokens_query
|
109 |
print(f"After add_special_tokens filter: {filtered_df.shape}")
|
110 |
|
111 |
# Num Few Shots γγ£γ«γΏγͺγ³γ°
|
112 |
-
filtered_df = filtered_df[
|
113 |
-
filtered_df["Few-shot"].astype(str).isin([str(x) for x in num_few_shots_query] + ["Unknown", "?"])
|
114 |
-
]
|
115 |
print(f"After num_few_shots filter: {filtered_df.shape}")
|
116 |
|
117 |
# Version γγ£γ«γΏγͺγ³γ°
|
@@ -460,7 +458,7 @@ with gr.Blocks() as demo_submission:
|
|
460 |
label="Model type",
|
461 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
462 |
multiselect=False,
|
463 |
-
value=lambda: None,
|
464 |
)
|
465 |
|
466 |
with gr.Column():
|
@@ -534,7 +532,7 @@ with gr.Blocks(css=custom_css, css_paths="style.css", theme=gr.themes.Glass()) a
|
|
534 |
)
|
535 |
gr.HTML(BOTTOM_LOGO)
|
536 |
|
537 |
-
language = gr.
|
538 |
choices=["π―π΅ JP", "πΊπΈ EN"],
|
539 |
value="π―π΅ JP",
|
540 |
elem_classes="language-selector",
|
|
|
92 |
print(f"After type filter: {filtered_df.shape}")
|
93 |
|
94 |
# Precision γγ£γ«γΏγͺγ³γ°
|
95 |
+
filtered_df = filtered_df[filtered_df["Precision"].isin(precision_query)]
|
96 |
print(f"After precision filter: {filtered_df.shape}")
|
97 |
|
98 |
# Model Size γγ£γ«γΏγͺγ³γ°
|
|
|
105 |
print(f"After size filter: {filtered_df.shape}")
|
106 |
|
107 |
# Add Special Tokens γγ£γ«γΏγͺγ³γ°
|
108 |
+
filtered_df = filtered_df[filtered_df["Add Special Tokens"].isin(add_special_tokens_query)]
|
109 |
print(f"After add_special_tokens filter: {filtered_df.shape}")
|
110 |
|
111 |
# Num Few Shots γγ£γ«γΏγͺγ³γ°
|
112 |
+
filtered_df = filtered_df[filtered_df["Few-shot"].astype(str).isin(num_few_shots_query)]
|
|
|
|
|
113 |
print(f"After num_few_shots filter: {filtered_df.shape}")
|
114 |
|
115 |
# Version γγ£γ«γΏγͺγ³γ°
|
|
|
458 |
label="Model type",
|
459 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
460 |
multiselect=False,
|
461 |
+
value=lambda: None, # This is due to a breaking change in Gradio 5. https://github.com/gradio-app/gradio/issues/9463 . But it will be fixed in the next release. https://github.com/gradio-app/gradio/pull/9699
|
462 |
)
|
463 |
|
464 |
with gr.Column():
|
|
|
532 |
)
|
533 |
gr.HTML(BOTTOM_LOGO)
|
534 |
|
535 |
+
language = gr.Radio(
|
536 |
choices=["π―π΅ JP", "πΊπΈ EN"],
|
537 |
value="π―π΅ JP",
|
538 |
elem_classes="language-selector",
|
style.css
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
.language-selector {
|
2 |
width: auto;
|
|
|
|
|
|
|
3 |
}
|
4 |
|
5 |
/* Hides the final AutoEvalColumn */
|
@@ -7,3 +10,8 @@
|
|
7 |
#llm-benchmark-tab-table table th:last-child {
|
8 |
display: none;
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.language-selector {
|
2 |
width: auto;
|
3 |
+
display: flex;
|
4 |
+
justify-content: center;
|
5 |
+
margin: 20px 0;
|
6 |
}
|
7 |
|
8 |
/* Hides the final AutoEvalColumn */
|
|
|
10 |
#llm-benchmark-tab-table table th:last-child {
|
11 |
display: none;
|
12 |
}
|
13 |
+
|
14 |
+
/* Full width space */
|
15 |
+
.gradio-container {
|
16 |
+
max-width: 95%!important;
|
17 |
+
}
|