awacke1 commited on
Commit
c1a9c17
1 Parent(s): cda566f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -90,10 +90,13 @@ def save_all_images(images):
90
  if len(images) == 0:
91
  return None, None
92
  zip_filename = create_zip(images) # Create a zip file from the list of image files
 
 
 
93
  zip_base64 = encode_file_to_base64(zip_filename) # Encode the zip file to base64
94
  download_link = f'<a href="data:application/zip;base64,{zip_base64}" download="{zip_filename}">Download All</a>'
95
- gr.File(download_link)
96
- print(download_link)
97
  return zip_filename, download_link
98
 
99
  # Function to handle "Save All" button click
 
90
  if len(images) == 0:
91
  return None, None
92
  zip_filename = create_zip(images) # Create a zip file from the list of image files
93
+ gr.Button(link="/file=" + zip_filename)
94
+
95
+ # remove?
96
  zip_base64 = encode_file_to_base64(zip_filename) # Encode the zip file to base64
97
  download_link = f'<a href="data:application/zip;base64,{zip_base64}" download="{zip_filename}">Download All</a>'
98
+ #gr.File(download_link)
99
+ #print(download_link)
100
  return zip_filename, download_link
101
 
102
  # Function to handle "Save All" button click