Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -946,7 +946,9 @@ def FileSidebar():
|
|
| 946 |
os.remove(file)
|
| 947 |
st.rerun()
|
| 948 |
with Files2:
|
| 949 |
-
|
|
|
|
|
|
|
| 950 |
zip_file = create_zip_of_files(all_files)
|
| 951 |
st.sidebar.markdown(get_zip_download_link(zip_file), unsafe_allow_html=True)
|
| 952 |
file_contents=''
|
|
|
|
| 946 |
os.remove(file)
|
| 947 |
st.rerun()
|
| 948 |
with Files2:
|
| 949 |
+
unique_key = hashlib.sha256(str(time.time()).encode()).hexdigest()
|
| 950 |
+
#key=unique_key
|
| 951 |
+
if st.button("⬇️ Download", key=unique_key):
|
| 952 |
zip_file = create_zip_of_files(all_files)
|
| 953 |
st.sidebar.markdown(get_zip_download_link(zip_file), unsafe_allow_html=True)
|
| 954 |
file_contents=''
|