Tanusree88's picture
Update app.py
aade1d5 verified
raw
history blame
296 Bytes
import zipfile
import os
def extract_zip(zip_file, extract_to):
with zipfile.ZipFile(zip_file, 'r') as zip_ref:
zip_ref.extractall(extract_to)
# Example usage
zip_file_path = 'path_to_your_zip_file.zip'
extract_to = 'path_to_extracted_images/'
extract_zip(zip_file_path, extract_to)