Steveeeeeeen HF Staff commited on
Commit
a2e949d
·
verified ·
1 Parent(s): 583f5cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -50,10 +50,12 @@ original_df = pd.read_csv(csv_results)
50
  whisper_df = pd.read_csv(whisper_csv_results)
51
  # Formats the columns
52
  def formatter(x):
53
- if type(x) is float:
54
- x = round(x, 2)
55
- else:
56
  x = "NA"
 
 
57
  return x
58
 
59
  for col in original_df.columns:
 
50
  whisper_df = pd.read_csv(whisper_csv_results)
51
  # Formats the columns
52
  def formatter(x):
53
+ if type(x) is str:
54
+ x = x
55
+ elif x == None:
56
  x = "NA"
57
+ else:
58
+ x = round(x, 2)
59
  return x
60
 
61
  for col in original_df.columns: