jitendra.kasaudhan
commited on
Commit
·
324f617
1
Parent(s):
4aa1f8b
Use streatmlit download button function
Browse files
app.py
CHANGED
@@ -59,7 +59,12 @@ def main():
|
|
59 |
# st.write(new_file)
|
60 |
# st.markdown(get_binary_file_downloader_html('photo.jpg', 'Picture'), unsafe_allow_html=True)
|
61 |
# st.markdown(get_binary_file_downloader_html('data.csv', 'My Data'), unsafe_allow_html=True)
|
62 |
-
st.markdown(get_binary_file_downloader_html(new_file, 'Audio'), unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
63 |
progress_bar.progress(100, text='DONE')
|
64 |
st.success('Successfull!!')
|
65 |
|
|
|
59 |
# st.write(new_file)
|
60 |
# st.markdown(get_binary_file_downloader_html('photo.jpg', 'Picture'), unsafe_allow_html=True)
|
61 |
# st.markdown(get_binary_file_downloader_html('data.csv', 'My Data'), unsafe_allow_html=True)
|
62 |
+
# st.markdown(get_binary_file_downloader_html(new_file, 'Audio'), unsafe_allow_html=True)
|
63 |
+
|
64 |
+
# download audio file
|
65 |
+
with open(new_file, 'rb') as f:
|
66 |
+
st.download_button('Download Audio', f, file_name=new_file)
|
67 |
+
|
68 |
progress_bar.progress(100, text='DONE')
|
69 |
st.success('Successfull!!')
|
70 |
|