Spaces:
Runtime error
Runtime error
fix rounding
Browse files
app.py
CHANGED
@@ -133,7 +133,8 @@ original_df.sort_values(by='Common Voice', 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'] = original_df['Detla Avg. C.V. WER']
|
|
|
137 |
|
138 |
COLS = [c.name for c in fields(AutoEvalColumn)]
|
139 |
TYPES = [c.type for c in fields(AutoEvalColumn)]
|
|
|
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 '') # Round and handle NaN values
|
138 |
|
139 |
COLS = [c.name for c in fields(AutoEvalColumn)]
|
140 |
TYPES = [c.type for c in fields(AutoEvalColumn)]
|