import zipfile with zipfile.ZipFile("https://huggingface.co/spaces/nightfury/SD-InPainting/blob/main/clipseg-master.zip", 'r') as zip_ref: zip_ref.extractall("home/user/app/")