Spaces:
Sleeping
Sleeping
Download app/unzip.py from PavanKumarD/FINBOT-END: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/PavanKumarD/FINBOT-END/resolve/main/app/unzip.py
- Command line
-
hf download hf://spaces/PavanKumarD/FINBOT-END/app/unzip.py
-
curl -L -o unzip.py https://huggingface.co/spaces/PavanKumarD/FINBOT-END/resolve/main/app/unzip.py
418 Bytes
| import zipfile | |
| import os | |
| zip_path = "nse_vector_base.zip" # path to your uploaded zip | |
| extract_path = "nse_vector_base/" # folder to extract into | |
| # Extract only if not already extracted | |
| if not os.path.exists(extract_path): | |
| with zipfile.ZipFile(zip_path, 'r') as zip_ref: | |
| zip_ref.extractall(extract_path) | |
| print("✅ Unzipped to:", extract_path) | |
| print("📂 Files:", os.listdir(extract_path)) | |