Spaces:
Runtime error
Runtime error
fix dist
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ original_df.rename(columns=column_names, inplace=True)
|
|
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[
|
137 |
|
138 |
original_df.sort_values(by='Detla Avg. C.V. WER', inplace=True)
|
139 |
|
|
|
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['Detla Avg. C.V. WER'].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 |
|