Spaces:
Sleeping
Sleeping
columns 정리3
Browse files
app.py
CHANGED
@@ -57,18 +57,6 @@ leaderboard_df = original_df.copy()
|
|
57 |
) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
58 |
|
59 |
|
60 |
-
def select_columns(df: pd.DataFrame, columns: list) -> pd.DataFrame:
|
61 |
-
always_here_cols = [
|
62 |
-
AutoEvalColumn.model_type_symbol.name,
|
63 |
-
AutoEvalColumn.model.name,
|
64 |
-
]
|
65 |
-
# We use COLS to maintain sorting
|
66 |
-
filtered_df = df[
|
67 |
-
always_here_cols + [c for c in COLS if c in df.columns and c in columns]
|
68 |
-
]
|
69 |
-
return filtered_df
|
70 |
-
|
71 |
-
|
72 |
leaderboard = gr.Blocks(css=custom_css)
|
73 |
with leaderboard:
|
74 |
gr.HTML(TITLE)
|
@@ -90,15 +78,6 @@ with leaderboard:
|
|
90 |
with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=2):
|
91 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
92 |
|
93 |
-
with gr.Row():
|
94 |
-
with gr.Accordion("📙 Citation", open=False):
|
95 |
-
citation_button = gr.Textbox(
|
96 |
-
value=CITATION_BUTTON_TEXT,
|
97 |
-
label=CITATION_BUTTON_LABEL,
|
98 |
-
lines=20,
|
99 |
-
elem_id="citation-button",
|
100 |
-
show_copy_button=True,
|
101 |
-
)
|
102 |
|
103 |
scheduler = BackgroundScheduler()
|
104 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
|
|
57 |
) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
leaderboard = gr.Blocks(css=custom_css)
|
61 |
with leaderboard:
|
62 |
gr.HTML(TITLE)
|
|
|
78 |
with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=2):
|
79 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
scheduler = BackgroundScheduler()
|
83 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|