balkite commited on
Commit
20b2533
·
1 Parent(s): c5de5c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -30,6 +30,14 @@ def main_page():
30
  with st.spinner("Loading Database..."):
31
  st.session_state.model = load_model()
32
 
 
 
 
 
 
 
 
 
33
  file = st.file_uploader(
34
  "Upload an Audio File",
35
  accept_multiple_files=False,
@@ -38,7 +46,6 @@ def main_page():
38
  )
39
 
40
  if st.session_state.model and file:
41
-
42
  st.audio(file)
43
 
44
  with st.spinner("Processing..."):
 
30
  with st.spinner("Loading Database..."):
31
  st.session_state.model = load_model()
32
 
33
+ with open("samples.zip", "rb") as file:
34
+ st.download_button(
35
+ label="Download Sample Files",
36
+ data=file,
37
+ file_name="samples.zip",
38
+ mime="application/zip"
39
+ )
40
+
41
  file = st.file_uploader(
42
  "Upload an Audio File",
43
  accept_multiple_files=False,
 
46
  )
47
 
48
  if st.session_state.model and file:
 
49
  st.audio(file)
50
 
51
  with st.spinner("Processing..."):