Spaces:
Running
Running
michal
commited on
Commit
·
30168ed
1
Parent(s):
0a2697b
Udate
Browse files- app.py +1 -1
- src/structures/pes_structure.py +1 -1
app.py
CHANGED
@@ -69,7 +69,7 @@ with main:
|
|
69 |
)
|
70 |
# Dataframe component to display the leaderboard data
|
71 |
data_component = gr.components.Dataframe(
|
72 |
-
value=
|
73 |
headers=COLUMN_HEADERS,
|
74 |
type="pandas",
|
75 |
datatype=DATA_TYPES,
|
|
|
69 |
)
|
70 |
# Dataframe component to display the leaderboard data
|
71 |
data_component = gr.components.Dataframe(
|
72 |
+
value=STYLED_PES_ACCS,
|
73 |
headers=COLUMN_HEADERS,
|
74 |
type="pandas",
|
75 |
datatype=DATA_TYPES,
|
src/structures/pes_structure.py
CHANGED
@@ -68,7 +68,7 @@ with open(file_path, 'r', encoding='utf-8') as file:
|
|
68 |
|
69 |
ORDER_LIST, DATA_TYPES = generate_order_list_and_data_types(sample_data)
|
70 |
PES_ACCS = load_json_data(file_path, ORDER_LIST)
|
71 |
-
|
72 |
color = highlight_color,
|
73 |
subset=PES_ACCS.columns[1:]).format(precision=2)
|
74 |
COLUMN_HEADERS = ORDER_LIST
|
|
|
68 |
|
69 |
ORDER_LIST, DATA_TYPES = generate_order_list_and_data_types(sample_data)
|
70 |
PES_ACCS = load_json_data(file_path, ORDER_LIST)
|
71 |
+
STYLED_PES_ACCS = PES_ACCS.style.highlight_max(
|
72 |
color = highlight_color,
|
73 |
subset=PES_ACCS.columns[1:]).format(precision=2)
|
74 |
COLUMN_HEADERS = ORDER_LIST
|