Spaces:
Running
Running
Yuxuan-Zhang-Dexter
commited on
Commit
·
fe7cb32
1
Parent(s):
85573ec
fix height error and requirements.txt error
Browse files- app.py +2 -3
- requirements.txt +2 -2
app.py
CHANGED
@@ -124,7 +124,7 @@ def prepare_dataframe_for_display(df, for_game=None):
|
|
124 |
# Helper function to ensure leaderboard updates maintain consistent height
|
125 |
def update_df_with_height(df):
|
126 |
"""Update DataFrame with consistent height parameter."""
|
127 |
-
return gr.update(value=df
|
128 |
|
129 |
def update_leaderboard(mario_overall, mario_details,
|
130 |
sokoban_overall, sokoban_details,
|
@@ -656,8 +656,7 @@ def build_app():
|
|
656 |
elem_id="leaderboard-table",
|
657 |
elem_classes="table-container",
|
658 |
wrap=True,
|
659 |
-
column_widths={"Player": "25%", "Organization": "20%"}
|
660 |
-
height=800
|
661 |
)
|
662 |
|
663 |
# Add the score note below the table
|
|
|
124 |
# Helper function to ensure leaderboard updates maintain consistent height
|
125 |
def update_df_with_height(df):
|
126 |
"""Update DataFrame with consistent height parameter."""
|
127 |
+
return gr.update(value=df)
|
128 |
|
129 |
def update_leaderboard(mario_overall, mario_details,
|
130 |
sokoban_overall, sokoban_details,
|
|
|
656 |
elem_id="leaderboard-table",
|
657 |
elem_classes="table-container",
|
658 |
wrap=True,
|
659 |
+
column_widths={"Player": "25%", "Organization": "20%"}
|
|
|
660 |
)
|
661 |
|
662 |
# Add the score note below the table
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
APScheduler
|
2 |
black
|
3 |
datasets
|
|
|
4 |
gradio[oauth]
|
5 |
gradio_leaderboard==0.0.13
|
6 |
gradio_client
|
@@ -15,5 +16,4 @@ tokenizers>=0.15.0
|
|
15 |
sentencepiece
|
16 |
seaborn>=0.12.0
|
17 |
Pillow>=10.0.0
|
18 |
-
plotly>=5.15.0
|
19 |
-
gradio>=4.0.0
|
|
|
1 |
APScheduler
|
2 |
black
|
3 |
datasets
|
4 |
+
gradio
|
5 |
gradio[oauth]
|
6 |
gradio_leaderboard==0.0.13
|
7 |
gradio_client
|
|
|
16 |
sentencepiece
|
17 |
seaborn>=0.12.0
|
18 |
Pillow>=10.0.0
|
19 |
+
plotly>=5.15.0
|
|