duongthienz commited on
Commit
8dad41f
·
verified ·
1 Parent(s): 860538c

Add new tab Rename Speaker

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -228,9 +228,9 @@ try:
228
  raise ValueError("File not yet analyzed")
229
 
230
  st.header(f"Analysis of file {currFile}")
231
- TAB_NAMES = ["Data", "Categories Percentage",
232
  "Speakers with Categories", "Treemap", "Timeline", "Time Spoken"]
233
- dataTab, pie2, sunburst1, treemap1, timeline, bar1 = st.tabs(TAB_NAMES)
234
 
235
  currAnnotation, currTotalTime = st.session_state.results[currFile]
236
  speakerNames = currAnnotation.labels()
@@ -287,6 +287,13 @@ try:
287
  tableDF = build_table_df(displayDF)
288
  ui.render_data_table(tableDF, speakerNames, raw_to_display, currFile)
289
 
 
 
 
 
 
 
 
290
  # -----------------------------------------------------------------------
291
  # Charts
292
  # -----------------------------------------------------------------------
 
228
  raise ValueError("File not yet analyzed")
229
 
230
  st.header(f"Analysis of file {currFile}")
231
+ TAB_NAMES = ["Data", "Rename Speaker", "Categories Percentage",
232
  "Speakers with Categories", "Treemap", "Timeline", "Time Spoken"]
233
+ dataTab, renameTab, pie2, sunburst1, treemap1, timeline, bar1 = st.tabs(TAB_NAMES)
234
 
235
  currAnnotation, currTotalTime = st.session_state.results[currFile]
236
  speakerNames = currAnnotation.labels()
 
287
  tableDF = build_table_df(displayDF)
288
  ui.render_data_table(tableDF, speakerNames, raw_to_display, currFile)
289
 
290
+ # -----------------------------------------------------------------------
291
+ # Tab: Rename Speaker
292
+ # -----------------------------------------------------------------------
293
+
294
+ with renameTab:
295
+ ui.render_speaker_samples_tab(speakerNames, raw_to_display, currFile)
296
+
297
  # -----------------------------------------------------------------------
298
  # Charts
299
  # -----------------------------------------------------------------------