Siddarth commited on
Commit
760aef2
·
1 Parent(s): 59385d6

allowing more than just .wav

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ if what == 'See examples':
79
  "2. Project development was proceeding too slowly.",
80
  "3. This brochure is particularly informative for a prospective buyer.",
81
  "4. I'd rather not buy these shoes than be overcharged.",
82
- "5. Those musicians harmonize marvelously"
83
  )
84
  )
85
 
@@ -95,7 +95,7 @@ if what == 'See examples':
95
 
96
 
97
  if what == 'Upload audio file':
98
- uploaded_file = st.file_uploader("Choose a file", type="wav")
99
  if uploaded_file is not None:
100
 
101
  wav_np, sr = librosa.load(uploaded_file, sr = 16000)
 
79
  "2. Project development was proceeding too slowly.",
80
  "3. This brochure is particularly informative for a prospective buyer.",
81
  "4. I'd rather not buy these shoes than be overcharged.",
82
+ "5. Those musicians harmonize marvellously"
83
  )
84
  )
85
 
 
95
 
96
 
97
  if what == 'Upload audio file':
98
+ uploaded_file = st.file_uploader("Choose a file", type=["wav", "aac", "m4a"])
99
  if uploaded_file is not None:
100
 
101
  wav_np, sr = librosa.load(uploaded_file, sr = 16000)