wasertech commited on
Commit
4ce82ce
1 Parent(s): bd48976

update sort by

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -129,13 +129,15 @@ for col in original_df.columns:
129
  original_df[col] = original_df[col].apply(formatter) # For numerical values
130
 
131
  original_df.rename(columns=column_names, inplace=True)
132
- original_df.sort_values(by='Common Voice WER', inplace=True)
133
 
134
  # Compute delta between average WER and CV WER
135
  original_df['Detla Avg. C.V. WER'] = original_df['Average WER ⬇️'] - original_df['Common Voice WER ⬇️']
136
  original_df['Detla Avg. C.V. WER'] = pd.to_numeric(original_df['Detla Avg. C.V. WER'], errors='coerce') # Convert to numerical data type
137
  original_df['Detla Avg. C.V. WER'] = original_df[col].apply(lambda x: round(x, 2) if not pd.isna(x) else x) # Round and handle NaN values
138
 
 
 
 
139
  COLS = [c.name for c in fields(AutoEvalColumn)]
140
  TYPES = [c.type for c in fields(AutoEvalColumn)]
141
 
 
129
  original_df[col] = original_df[col].apply(formatter) # For numerical values
130
 
131
  original_df.rename(columns=column_names, inplace=True)
 
132
 
133
  # Compute delta between average WER and CV WER
134
  original_df['Detla Avg. C.V. WER'] = original_df['Average WER ⬇️'] - original_df['Common Voice WER ⬇️']
135
  original_df['Detla Avg. C.V. WER'] = pd.to_numeric(original_df['Detla Avg. C.V. WER'], errors='coerce') # Convert to numerical data type
136
  original_df['Detla Avg. C.V. WER'] = original_df[col].apply(lambda x: round(x, 2) if not pd.isna(x) else x) # Round and handle NaN values
137
 
138
+ original_df.sort_values(by='Detla Avg. C.V. WER', inplace=True)
139
+
140
+
141
  COLS = [c.name for c in fields(AutoEvalColumn)]
142
  TYPES = [c.type for c in fields(AutoEvalColumn)]
143