Commit
·
82efd6a
1
Parent(s):
aa1ba53
Update app.py
Browse files
app.py
CHANGED
@@ -59,10 +59,7 @@ 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 |
-
|
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,
|
|
|
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,
|