sergiomar73 commited on
Commit
aa1ba53
·
1 Parent(s): d269751

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -59,7 +59,10 @@ def compare_text(transcript, categories):
59
  df_results_plot[df_category.iloc[0,2]] = max_scores
60
  df_results_grid[df_category.iloc[0,2]] = max_scores
61
  df_results_plot = df_results_plot.round(decimals = 2)
62
- df_results_grid = df_results_grid.round(decimals = 3)
 
 
 
63
  # Plot
64
  fig = px.imshow(
65
  df_results_plot,
 
59
  df_results_plot[df_category.iloc[0,2]] = max_scores
60
  df_results_grid[df_category.iloc[0,2]] = max_scores
61
  df_results_plot = df_results_plot.round(decimals = 2)
62
+ # df_results_grid = df_results_grid.round(decimals = 3)
63
+ # https://stackoverflow.com/a/72631841
64
+ decimals = 10**3
65
+ np.trunc(decimals * df_results_grid) / decimals
66
  # Plot
67
  fig = px.imshow(
68
  df_results_plot,