Spaces:
Running
Running
Commit
·
36e8f6e
1
Parent(s):
a538c9d
fix: override leaderboard error handling in app.py to prevent crashes and enable full column selection for improved data display
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ from gradio_leaderboard import Leaderboard
|
|
7 |
|
8 |
from assets import custom_css
|
9 |
|
|
|
10 |
Leaderboard.raise_error_if_incorrect_config = lambda self: None
|
|
|
11 |
abs_path = Path(__file__).parent
|
12 |
|
13 |
# Load the JSONL file into a pandas DataFrame using the json library
|
@@ -42,6 +44,7 @@ with gr.Blocks("ParityError/Interstellar", fill_width=True, css=custom_css) as d
|
|
42 |
with gr.TabItem("FLUX.1 [dev] Leaderboard"):
|
43 |
Leaderboard(
|
44 |
value=df,
|
|
|
45 |
datatype=["markdown"] + ["number"] * (len(df.columns.tolist()) - 1),
|
46 |
)
|
47 |
with gr.TabItem("FLUX.1 [dev] examples"):
|
|
|
7 |
|
8 |
from assets import custom_css
|
9 |
|
10 |
+
# override method to avoid bugg
|
11 |
Leaderboard.raise_error_if_incorrect_config = lambda self: None
|
12 |
+
|
13 |
abs_path = Path(__file__).parent
|
14 |
|
15 |
# Load the JSONL file into a pandas DataFrame using the json library
|
|
|
44 |
with gr.TabItem("FLUX.1 [dev] Leaderboard"):
|
45 |
Leaderboard(
|
46 |
value=df,
|
47 |
+
select_columns=df.columns.tolist(),
|
48 |
datatype=["markdown"] + ["number"] * (len(df.columns.tolist()) - 1),
|
49 |
)
|
50 |
with gr.TabItem("FLUX.1 [dev] examples"):
|