lomit commited on
Commit
510f63c
·
1 Parent(s): 2f60ebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  import io
3
  import soundfile as sf
4
- import matplotlib.pyplot as plt
5
  import numpy as np
6
 
7
  import whisper
@@ -108,9 +108,9 @@ if file_data is not None:
108
  audio_arr = convert_byte_audio(bytes_data)
109
 
110
  # audio plotting
111
- fig, ax = plt.subplots()
112
- ax.plot(audio_arr)
113
- st.pyplot(fig)
114
 
115
  st.audio(bytes_data)
116
 
 
1
  import streamlit as st
2
  import io
3
  import soundfile as sf
4
+
5
  import numpy as np
6
 
7
  import whisper
 
108
  audio_arr = convert_byte_audio(bytes_data)
109
 
110
  # audio plotting
111
+ #fig, ax = plt.subplots()
112
+ #ax.plot(audio_arr)
113
+ #st.pyplot(fig)
114
 
115
  st.audio(bytes_data)
116