ageraustine commited on
Commit
a1b6ad7
1 Parent(s): f7b5ba8

add max file size

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,8 @@ if 'augmented_audio' not in st_state:
34
  # Streamlit app title
35
  st.title("Songlabai")
36
 
37
- uploaded_file = st.file_uploader("Upload Music File", type=["mp3", "wav", "ogg", "flac", "aac"])
 
38
 
39
  genres = [
40
  "Pop", "Rock", "Hip Hop", "Jazz", "Blues",
 
34
  # Streamlit app title
35
  st.title("Songlabai")
36
 
37
+ max_file_size = 10 * 1024 * 1024
38
+ uploaded_file = st.file_uploader("Upload Music File", type=["mp3", "wav", "ogg", "flac", "aac"], max_upload_bytes=max_file_size)
39
 
40
  genres = [
41
  "Pop", "Rock", "Hip Hop", "Jazz", "Blues",