felix commited on
Commit
30eeec0
1 Parent(s): 1806f33
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -178,9 +178,12 @@ def display(x, y):
178
  for column in original_df.columns:
179
  if original_df[column].dtype == 'object':
180
  original_df[column] = original_df[column].apply(remove_invalid_unicode)
181
- json_data = original_df.to_json(orient='records', columns=COLS)
 
 
 
182
  print(json_data) # Print JSON representation
183
- return original_df
184
 
185
  INTRODUCTION_TEXT = """
186
  This is a copied space from Open Source LLM leaderboard. Instead of displaying
 
178
  for column in original_df.columns:
179
  if original_df[column].dtype == 'object':
180
  original_df[column] = original_df[column].apply(remove_invalid_unicode)
181
+
182
+ subset_df = original_df[COLS]
183
+
184
+ json_data = subset_df.to_json(orient='records')
185
  print(json_data) # Print JSON representation
186
+ return subset_df
187
 
188
  INTRODUCTION_TEXT = """
189
  This is a copied space from Open Source LLM leaderboard. Instead of displaying