shayekh commited on
Commit
8ded997
Β·
verified Β·
1 Parent(s): 4ec3cb6

added data stats

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -240,15 +240,30 @@ with demo:
240
  df[col] = df[col].apply(lang_format_with_color)
241
 
242
 
243
-
244
 
245
  # for col in numeric_cols:
246
  # df[col] = (df[col] * 100).round(1).astype(str)
247
 
248
  AutoEvalColumnTranslation.add_columns_from_df(df, numeric_cols)
249
  leaderboard = init_leaderboard(df, AutoEvalColumnTranslation)
250
-
251
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
 
253
  with gr.Row():
254
  with gr.Accordion("πŸ“š Citation", open=False):
 
240
  df[col] = df[col].apply(lang_format_with_color)
241
 
242
 
243
+
244
 
245
  # for col in numeric_cols:
246
  # df[col] = (df[col] * 100).round(1).astype(str)
247
 
248
  AutoEvalColumnTranslation.add_columns_from_df(df, numeric_cols)
249
  leaderboard = init_leaderboard(df, AutoEvalColumnTranslation)
250
+
251
+ # Add statistics tab with suitable emoji and title
252
+ with gr.TabItem("πŸ“Š Statistics"):
253
+ gr.Markdown('''## Dataset Statistics
254
+
255
+ | Category | # Instances | # Languages |
256
+ |------------------------------|-------------|-------------|
257
+ | **General-purpose capabilities** | | |
258
+ | Chat | 296 | 23 |
259
+ | Chat-Hard | 407 | 23 |
260
+ | Safety | 736 | 23 |
261
+ | Reasoning | 1,430 | 23 |
262
+ | **Multilingual knowledge** | | |
263
+ | Translation | 400 | 2 |
264
+ | **Total** | 66,787 | - |''')
265
+
266
+ # gr.Markdown("### Model Statistics")
267
 
268
  with gr.Row():
269
  with gr.Accordion("πŸ“š Citation", open=False):