czyoung commited on
Commit
9ad92b5
·
verified ·
1 Parent(s): b9e0896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -240,7 +240,7 @@ for i, tab in enumerate(audio_tabs):
240
  )
241
  )
242
 
243
- st.plotly_chart(fig_la, use_container_width=True)
244
 
245
  dataTimeList = []
246
  for j, totalTime in enumerate(lecturer_speaker_times):
@@ -248,7 +248,7 @@ for i, tab in enumerate(audio_tabs):
248
  df2 = pd.DataFrame(dataTimeList)
249
  fig2_la = px.bar(dataTimeList, x="x", y="y", color="y", orientation='h')
250
  fig2_la.update_xaxes(ticksuffix="%")
251
- st.plotly_chart(fig2_la, use_container_width=True)
252
  df = pd.DataFrame(
253
  {
254
  "Time spoken": ["{}h:{:02d}m:{:02d}s".format(int(lecturer_speaker_times[0]/3600),
@@ -298,7 +298,7 @@ for i, tab in enumerate(audio_tabs):
298
  )
299
  )
300
 
301
- st.plotly_chart(fig_spc, use_container_width=True)
302
 
303
  dataTimeList = []
304
  for j, totalTime in enumerate(all_speaker_times):
@@ -306,7 +306,7 @@ for i, tab in enumerate(audio_tabs):
306
  df2 = pd.DataFrame(dataTimeList)
307
  fig2_spc = px.bar(dataTimeList, x="x", y="y", color="y", orientation='h')
308
  fig2_spc.update_xaxes(ticksuffix="%")
309
- st.plotly_chart(fig2_spc, use_container_width=True)
310
 
311
  df = pd.DataFrame(
312
  {
 
240
  )
241
  )
242
 
243
+ tab.plotly_chart(fig_la, use_container_width=True)
244
 
245
  dataTimeList = []
246
  for j, totalTime in enumerate(lecturer_speaker_times):
 
248
  df2 = pd.DataFrame(dataTimeList)
249
  fig2_la = px.bar(dataTimeList, x="x", y="y", color="y", orientation='h')
250
  fig2_la.update_xaxes(ticksuffix="%")
251
+ tab.plotly_chart(fig2_la, use_container_width=True)
252
  df = pd.DataFrame(
253
  {
254
  "Time spoken": ["{}h:{:02d}m:{:02d}s".format(int(lecturer_speaker_times[0]/3600),
 
298
  )
299
  )
300
 
301
+ tab.plotly_chart(fig_spc, use_container_width=True)
302
 
303
  dataTimeList = []
304
  for j, totalTime in enumerate(all_speaker_times):
 
306
  df2 = pd.DataFrame(dataTimeList)
307
  fig2_spc = px.bar(dataTimeList, x="x", y="y", color="y", orientation='h')
308
  fig2_spc.update_xaxes(ticksuffix="%")
309
+ tab.plotly_chart(fig2_spc, use_container_width=True)
310
 
311
  df = pd.DataFrame(
312
  {