anhnv125 commited on
Commit
c729190
1 Parent(s): 042c5b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -76,7 +76,8 @@ title = 'Packet Loss Concealment'
76
  st.set_page_config(page_title=title, page_icon=":sound:")
77
  st.title(title)
78
 
79
- uploaded_file = st.file_uploader("Upload your audio file (.wav)")
 
80
 
81
  is_file_uploaded = uploaded_file is not None
82
  if not is_file_uploaded:
@@ -85,7 +86,7 @@ if not is_file_uploaded:
85
  target, sr = librosa.load(uploaded_file, sr=48000)
86
  target = target[:packet_size * (len(target) // packet_size)]
87
 
88
- st.subheader('Original audio')
89
  st.audio(uploaded_file)
90
 
91
  st.subheader('Choose expected packet loss rate')
 
76
  st.set_page_config(page_title=title, page_icon=":sound:")
77
  st.title(title)
78
 
79
+ st.subheader('Upload audio')
80
+ uploaded_file = st.file_uploader("Upload your audio file (.wav) at 48 kHz sampling rate")
81
 
82
  is_file_uploaded = uploaded_file is not None
83
  if not is_file_uploaded:
 
86
  target, sr = librosa.load(uploaded_file, sr=48000)
87
  target = target[:packet_size * (len(target) // packet_size)]
88
 
89
+ st.text('Audio sample')
90
  st.audio(uploaded_file)
91
 
92
  st.subheader('Choose expected packet loss rate')