sergiomar73 commited on
Commit
991d5b1
1 Parent(s): 3374d66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,7 +82,7 @@ def compare_text(transcript, categories, threshold):
82
  fig1.update_layout(height=1000)
83
  fig1.update_xaxes(side="top")
84
  # Plot 2
85
- df_results_plot2 = df_results_plot.applymap(to_zero)
86
  fig2 = px.imshow(
87
  df_results_plot2,
88
  labels=dict(x="Category", y="Sentence"),
@@ -101,7 +101,7 @@ def compare_text(transcript, categories, threshold):
101
  fig2.update_yaxes(range=[0, 1])
102
  fig2.update_xaxes(side="top")
103
 
104
- return df_results_grid, fig1, fig2
105
 
106
  categories = """Hello=Hello, how are you doing today?;Hi, everybody.;Hi;My name's Johnny
107
  What=most advanced conversation intelligence and AI powered coaching platform;a software platform that helps people reach their potential
 
82
  fig1.update_layout(height=1000)
83
  fig1.update_xaxes(side="top")
84
  # Plot 2
85
+ df_results_plot2 = df_results_plot.applymap(hide_if_below_threshold)
86
  fig2 = px.imshow(
87
  df_results_plot2,
88
  labels=dict(x="Category", y="Sentence"),
 
101
  fig2.update_yaxes(range=[0, 1])
102
  fig2.update_xaxes(side="top")
103
 
104
+ return df_results_grid, fig2, fig1
105
 
106
  categories = """Hello=Hello, how are you doing today?;Hi, everybody.;Hi;My name's Johnny
107
  What=most advanced conversation intelligence and AI powered coaching platform;a software platform that helps people reach their potential