Update app.py
Browse files
app.py
CHANGED
|
@@ -226,15 +226,15 @@ def page_1():
|
|
| 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 |
-
|
| 238 |
|
| 239 |
|
| 240 |
# Simulate a delay for finalizing (if needed)
|
|
|
|
| 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)
|