czyoung commited on
Commit
3bb9efa
·
verified ·
1 Parent(s): ac3f151

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -132,7 +132,7 @@ for j, tab in enumerate(audio_tabs):
132
  # Setting labels for x-axis and y-axis
133
  ax1.set_title('Recording Results')
134
  ax1.set_xlabel('Minutes since start')
135
- ax1.set_ylabel('Speaker ID')
136
  ax1.spines.top.set_visible(False)
137
 
138
 
@@ -181,7 +181,7 @@ for j, tab in enumerate(audio_tabs):
181
  df.style \
182
  .format_index(str.upper, axis=1) \
183
  .relabel_index(["Lecturer", "Audience"], axis=0) \
184
- .set_properties({"background-color": "white"])
185
  tab.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
186
  tab.table(df)
187
  #tab.write("Lecturer spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[0]/3600),
@@ -205,7 +205,7 @@ for j, tab in enumerate(audio_tabs):
205
  # Setting labels for x-axis and y-axis
206
  ax1.set_title('Recording Results')
207
  ax1.set_xlabel('Minutes since start')
208
- ax1.set_ylabel('Speaker ID')
209
 
210
 
211
  # Setting ticks on y-axis (5,10,15,...)
@@ -242,7 +242,7 @@ for j, tab in enumerate(audio_tabs):
242
  df.style \
243
  .format_index(str.upper, axis=1) \
244
  .relabel_index([f"speaker {sp}" for sp in range(len(all_speaker_times))], axis=0) \
245
- .set_properties({"background-color": "white"])
246
 
247
  tab.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
248
  tab.table(df)
 
132
  # Setting labels for x-axis and y-axis
133
  ax1.set_title('Recording Results')
134
  ax1.set_xlabel('Minutes since start')
135
+ #ax1.set_ylabel('Speaker ID')
136
  ax1.spines.top.set_visible(False)
137
 
138
 
 
181
  df.style \
182
  .format_index(str.upper, axis=1) \
183
  .relabel_index(["Lecturer", "Audience"], axis=0) \
184
+ .set_properties({"background-color": "white"})
185
  tab.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
186
  tab.table(df)
187
  #tab.write("Lecturer spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[0]/3600),
 
205
  # Setting labels for x-axis and y-axis
206
  ax1.set_title('Recording Results')
207
  ax1.set_xlabel('Minutes since start')
208
+ #ax1.set_ylabel('Speaker ID')
209
 
210
 
211
  # Setting ticks on y-axis (5,10,15,...)
 
242
  df.style \
243
  .format_index(str.upper, axis=1) \
244
  .relabel_index([f"speaker {sp}" for sp in range(len(all_speaker_times))], axis=0) \
245
+ .set_properties({"background-color": "white"})
246
 
247
  tab.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
248
  tab.table(df)