Spaces:
Runtime error
Runtime error
Tianyi (Alex) Qiu
commited on
Commit
Β·
c020d91
1
Parent(s):
0af6c44
remove unused functionalities
Browse files
app.py
CHANGED
|
@@ -138,15 +138,15 @@ with demo:
|
|
| 138 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
| 139 |
|
| 140 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 141 |
-
with gr.TabItem("
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column():
|
| 144 |
-
with gr.Row():
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
with gr.Row():
|
| 151 |
shown_columns = gr.CheckboxGroup(
|
| 152 |
choices=[
|
|
@@ -163,33 +163,33 @@ with demo:
|
|
| 163 |
elem_id="column-select",
|
| 164 |
interactive=True,
|
| 165 |
)
|
| 166 |
-
with gr.Row():
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
with gr.Column(min_width=320):
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
|
| 194 |
leaderboard_table = gr.components.Dataframe(
|
| 195 |
value=leaderboard_df[
|
|
@@ -210,39 +210,39 @@ with demo:
|
|
| 210 |
datatype=TYPES,
|
| 211 |
visible=False,
|
| 212 |
)
|
| 213 |
-
search_bar.submit(
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
)
|
| 226 |
-
for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
with gr.TabItem("
|
| 243 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
| 244 |
|
| 245 |
-
with gr.TabItem("
|
| 246 |
with gr.Column():
|
| 247 |
with gr.Row():
|
| 248 |
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
|
@@ -283,7 +283,7 @@ with demo:
|
|
| 283 |
row_count=5,
|
| 284 |
)
|
| 285 |
with gr.Row():
|
| 286 |
-
gr.Markdown("#
|
| 287 |
|
| 288 |
with gr.Row():
|
| 289 |
with gr.Column():
|
|
@@ -330,7 +330,7 @@ with demo:
|
|
| 330 |
)
|
| 331 |
|
| 332 |
with gr.Row():
|
| 333 |
-
with gr.Accordion("
|
| 334 |
citation_button = gr.Textbox(
|
| 335 |
value=CITATION_BUTTON_TEXT,
|
| 336 |
label=CITATION_BUTTON_LABEL,
|
|
|
|
| 138 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
| 139 |
|
| 140 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 141 |
+
with gr.TabItem("Leaderboard", elem_id="llm-benchmark-tab-table", id=0):
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column():
|
| 144 |
+
# with gr.Row():
|
| 145 |
+
# search_bar = gr.Textbox(
|
| 146 |
+
# placeholder=" π Search for your model (separate multiple queries with `;`) and press ENTER...",
|
| 147 |
+
# show_label=False,
|
| 148 |
+
# elem_id="search-bar",
|
| 149 |
+
# )
|
| 150 |
with gr.Row():
|
| 151 |
shown_columns = gr.CheckboxGroup(
|
| 152 |
choices=[
|
|
|
|
| 163 |
elem_id="column-select",
|
| 164 |
interactive=True,
|
| 165 |
)
|
| 166 |
+
# with gr.Row():
|
| 167 |
+
# deleted_models_visibility = gr.Checkbox(
|
| 168 |
+
# value=False, label="Show gated/private/deleted models", interactive=True
|
| 169 |
+
# )
|
| 170 |
+
# with gr.Column(min_width=320):
|
| 171 |
+
# #with gr.Box(elem_id="box-filter"):
|
| 172 |
+
# filter_columns_type = gr.CheckboxGroup(
|
| 173 |
+
# label="Model types",
|
| 174 |
+
# choices=[t.to_str() for t in ModelType],
|
| 175 |
+
# value=[t.to_str() for t in ModelType],
|
| 176 |
+
# interactive=True,
|
| 177 |
+
# elem_id="filter-columns-type",
|
| 178 |
+
# )
|
| 179 |
+
# filter_columns_precision = gr.CheckboxGroup(
|
| 180 |
+
# label="Precision",
|
| 181 |
+
# choices=[i.value.name for i in Precision],
|
| 182 |
+
# value=[i.value.name for i in Precision],
|
| 183 |
+
# interactive=True,
|
| 184 |
+
# elem_id="filter-columns-precision",
|
| 185 |
+
# )
|
| 186 |
+
# filter_columns_size = gr.CheckboxGroup(
|
| 187 |
+
# label="Model sizes (in billions of parameters)",
|
| 188 |
+
# choices=list(NUMERIC_INTERVALS.keys()),
|
| 189 |
+
# value=list(NUMERIC_INTERVALS.keys()),
|
| 190 |
+
# interactive=True,
|
| 191 |
+
# elem_id="filter-columns-size",
|
| 192 |
+
# )
|
| 193 |
|
| 194 |
leaderboard_table = gr.components.Dataframe(
|
| 195 |
value=leaderboard_df[
|
|
|
|
| 210 |
datatype=TYPES,
|
| 211 |
visible=False,
|
| 212 |
)
|
| 213 |
+
# search_bar.submit(
|
| 214 |
+
# update_table,
|
| 215 |
+
# [
|
| 216 |
+
# hidden_leaderboard_table_for_search,
|
| 217 |
+
# shown_columns,
|
| 218 |
+
# filter_columns_type,
|
| 219 |
+
# filter_columns_precision,
|
| 220 |
+
# filter_columns_size,
|
| 221 |
+
# deleted_models_visibility,
|
| 222 |
+
# search_bar,
|
| 223 |
+
# ],
|
| 224 |
+
# leaderboard_table,
|
| 225 |
+
# )
|
| 226 |
+
# for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility]:
|
| 227 |
+
# selector.change(
|
| 228 |
+
# update_table,
|
| 229 |
+
# [
|
| 230 |
+
# hidden_leaderboard_table_for_search,
|
| 231 |
+
# shown_columns,
|
| 232 |
+
# filter_columns_type,
|
| 233 |
+
# filter_columns_precision,
|
| 234 |
+
# filter_columns_size,
|
| 235 |
+
# deleted_models_visibility,
|
| 236 |
+
# search_bar,
|
| 237 |
+
# ],
|
| 238 |
+
# leaderboard_table,
|
| 239 |
+
# queue=True,
|
| 240 |
+
# )
|
| 241 |
+
|
| 242 |
+
with gr.TabItem("About", elem_id="llm-benchmark-tab-table", id=2):
|
| 243 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
| 244 |
|
| 245 |
+
with gr.TabItem("Submit here! ", elem_id="llm-benchmark-tab-table", id=3):
|
| 246 |
with gr.Column():
|
| 247 |
with gr.Row():
|
| 248 |
gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
|
|
|
|
| 283 |
row_count=5,
|
| 284 |
)
|
| 285 |
with gr.Row():
|
| 286 |
+
gr.Markdown("# Submit your model here!", elem_classes="markdown-text")
|
| 287 |
|
| 288 |
with gr.Row():
|
| 289 |
with gr.Column():
|
|
|
|
| 330 |
)
|
| 331 |
|
| 332 |
with gr.Row():
|
| 333 |
+
with gr.Accordion("Citation", open=False):
|
| 334 |
citation_button = gr.Textbox(
|
| 335 |
value=CITATION_BUTTON_TEXT,
|
| 336 |
label=CITATION_BUTTON_LABEL,
|