arjunguha commited on
Commit
1d6280a
1 Parent(s): 8cbb73d

Two digits of precision

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def update_table(selected_languages):
64
  return pd.DataFrame({'Model': [get_friendly_name(model) for model in models]})
65
 
66
  display_data = pivot[selected_languages].replace(np.nan, "-")
67
- display_data = display_data.applymap(lambda x: f"{x:.3f}" if isinstance(x, (int, float)) else x)
68
 
69
  # Add the Model column as the first column
70
  display_data.insert(0, 'Model', [get_friendly_name(model) for model in display_data.index])
 
64
  return pd.DataFrame({'Model': [get_friendly_name(model) for model in models]})
65
 
66
  display_data = pivot[selected_languages].replace(np.nan, "-")
67
+ display_data = display_data.applymap(lambda x: f"{x:.2f}" if isinstance(x, (int, float)) else x)
68
 
69
  # Add the Model column as the first column
70
  display_data.insert(0, 'Model', [get_friendly_name(model) for model in display_data.index])