Jellyfish042 commited on
Commit
86e1422
1 Parent(s): 54696b7
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -24,7 +24,7 @@ sheet_name_list = [
24
  ]
25
 
26
  metric_list = [
27
- 'Completion Rate (%)',
28
  'Bits Per Character (BPC)',
29
  'Bits Per Byte (BPB)',
30
  ]
@@ -36,7 +36,7 @@ model_size_list = [
36
  ]
37
 
38
  metric_to_sheet = {
39
- 'Completion Rate (%)': 'cr',
40
  'Bits Per Character (BPC)': 'bpc',
41
  'Bits Per Byte (BPB)': 'bpb',
42
  }
@@ -120,16 +120,18 @@ def get_folders_matching_format(directory):
120
 
121
 
122
  def get_unique_column_names(all_data):
123
- column_names = {}
124
-
125
- for folder_name, files in all_data.items():
126
- for file_name, sheets in files.items():
127
- for sheet_name, dataframe in sheets.items():
128
- for column in dataframe.columns:
129
- if column not in ['Name', 'Average (The lower the better)', 'Parameters Count (B)']:
130
- column_names[column] = None
131
-
132
- return list(column_names.keys())
 
 
133
 
134
 
135
  def update_table(period: str,
 
24
  ]
25
 
26
  metric_list = [
27
+ 'Compression Rate (%)',
28
  'Bits Per Character (BPC)',
29
  'Bits Per Byte (BPB)',
30
  ]
 
36
  ]
37
 
38
  metric_to_sheet = {
39
+ 'Compression Rate (%)': 'cr',
40
  'Bits Per Character (BPC)': 'bpc',
41
  'Bits Per Byte (BPB)': 'bpb',
42
  }
 
120
 
121
 
122
  def get_unique_column_names(all_data):
123
+ # column_names = {}
124
+ #
125
+ # for folder_name, files in all_data.items():
126
+ # for file_name, sheets in files.items():
127
+ # for sheet_name, dataframe in sheets.items():
128
+ # for column in dataframe.columns:
129
+ # if column not in ['Name', 'Average (The lower the better)', 'Parameters Count (B)']:
130
+ # column_names[column] = None
131
+ #
132
+ # return list(column_names.keys())
133
+
134
+ return ['ao3_\u200benglish', 'bbc_\u200bnews', 'wikipedia_\u200benglish', 'arxiv_\u200bcomputer_\u200bscience', 'arxiv_\u200bphysics', 'github_\u200bcpp', 'github_\u200bpython']
135
 
136
 
137
  def update_table(period: str,