czyoung commited on
Commit
689597f
·
verified ·
1 Parent(s): 73aa252

Correct reported values

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -95,10 +95,10 @@ if st.button("Analyze Audio"):
95
  st.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
96
  st.write("Lecturer spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[0]/3600),
97
  int((lecturer_speaker_times[0]%3600)/60),int(lecturer_speaker_times[0]%60),
98
- lecturer_speaker_times[0]/totalSeconds))
99
  st.write("Audience spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[1]/3600),
100
  int((lecturer_speaker_times[1]%3600)/60),int(lecturer_speaker_times[1]%60),
101
- lecturer_speaker_times[1]/totalSeconds))
102
 
103
  # Experimental Speaker Breakdown
104
  #------------------------------------------------------------------------------
@@ -140,9 +140,9 @@ if st.button("Analyze Audio"):
140
  st.pyplot(f)
141
 
142
  st.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
143
- for i,speaker in all_speaker_times:
144
  st.write("Speaker {} spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(i,
145
  int(speaker/3600),
146
  int((speaker%3600)/60),
147
  int(speaker%60),
148
- speaker/totalSeconds))
 
95
  st.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
96
  st.write("Lecturer spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[0]/3600),
97
  int((lecturer_speaker_times[0]%3600)/60),int(lecturer_speaker_times[0]%60),
98
+ 100*lecturer_speaker_times[0]/totalSeconds))
99
  st.write("Audience spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(int(lecturer_speaker_times[1]/3600),
100
  int((lecturer_speaker_times[1]%3600)/60),int(lecturer_speaker_times[1]%60),
101
+ 100*lecturer_speaker_times[1]/totalSeconds))
102
 
103
  # Experimental Speaker Breakdown
104
  #------------------------------------------------------------------------------
 
140
  st.pyplot(f)
141
 
142
  st.write("Total length of audio: {}h:{:02d}m:{:02d}s".format(int(totalSeconds/3600),int((totalSeconds%3600)/60),int(totalSeconds%60)))
143
+ for i,speaker in enumerate(all_speaker_times):
144
  st.write("Speaker {} spoke: {}h:{:02d}m:{:02d}s -> {:.2f}% of time".format(i,
145
  int(speaker/3600),
146
  int((speaker%3600)/60),
147
  int(speaker%60),
148
+ 100*speaker/totalSeconds))