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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,10 +50,10 @@ 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 str:
54
- x = x
55
- else:
56
  x = round(x, 2)
 
 
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 float:
 
 
54
  x = round(x, 2)
55
+ else:
56
+ x = "NA"
57
  return x
58
 
59
  for col in original_df.columns: