Tanusree88's picture
Update app.py
8abc65c verified
raw
history blame
No virus
350 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 = 'https://huggingface.co/spaces/Tanusree88/ViT-MRI-FineTuning/resolve/main/MS.zip'
extract_to = 'path_to_extracted_images/'
extract_zip(zip_file_path, extract_to)