NEXAS commited on
Commit
b67f625
·
verified ·
1 Parent(s): 61f7294

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -226,6 +226,17 @@ def page_1():
226
  st.session_state.text_collection = text_collection
227
  st.session_state.video_collection = video_collection
228
 
 
 
 
 
 
 
 
 
 
 
 
229
  # Simulate a delay for finalizing (if needed)
230
  time.sleep(1) # Simulate final step
231
 
 
226
  st.session_state.text_collection = text_collection
227
  st.session_state.video_collection = video_collection
228
 
229
+ import shutil
230
+ # Path to the folder you want to download
231
+ folder_path = "mm_vdb2"
232
+ zip_path = "mm_vdb2.zip"
233
+
234
+ # Compress the folder
235
+ shutil.make_archive(base_name="mm_vdb2", format="zip", root_dir=folder_path)
236
+ with open(zip_path, "rb") as file:
237
+ st.download_button(label="Download mm_vdb2.zip", data=file, file_name="mm_vdb2.zip")
238
+
239
+
240
  # Simulate a delay for finalizing (if needed)
241
  time.sleep(1) # Simulate final step
242