Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -310,16 +310,13 @@ with demo:
|
|
310 |
print(filtered_df.head().to_dict('records'))
|
311 |
print("Filtered DataFrame columns:")
|
312 |
print(filtered_df.columns.tolist())
|
313 |
-
|
314 |
-
for _, row in filtered_df.iterrows():
|
315 |
-
data.append({col: str(row[col]) for col in filtered_df.columns})
|
316 |
-
|
317 |
leaderboard_table = gr.components.Dataframe(
|
318 |
-
value=
|
319 |
-
headers=
|
320 |
-
datatype={col: "str" for col in
|
321 |
-
row_count=(len(
|
322 |
-
col_count=(len(
|
323 |
wrap=True,
|
324 |
elem_id="leaderboard-table",
|
325 |
interactive=False,
|
|
|
310 |
print(filtered_df.head().to_dict('records'))
|
311 |
print("Filtered DataFrame columns:")
|
312 |
print(filtered_df.columns.tolist())
|
313 |
+
filtered_df_without_T = filtered_df.drop('T', axis=1)
|
|
|
|
|
|
|
314 |
leaderboard_table = gr.components.Dataframe(
|
315 |
+
value=filtered_df_without_T.to_dict('records'),
|
316 |
+
headers=filtered_df_without_T.columns.tolist(),
|
317 |
+
datatype={col: "str" for col in filtered_df_without_T.columns},
|
318 |
+
row_count=(len(filtered_df_without_T), "dynamic"),
|
319 |
+
col_count=(len(filtered_df_without_T.columns), "fixed"),
|
320 |
wrap=True,
|
321 |
elem_id="leaderboard-table",
|
322 |
interactive=False,
|