Spaces:
Running on Zero
Running on Zero
Download scripts/test_models.py from Sivaneshakumar/sanjeevani-backend: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-backend/resolve/main/scripts/test_models.py
- Command line
-
hf download hf://spaces/Sivaneshakumar/sanjeevani-backend/scripts/test_models.py
-
curl -L -o test_models.py https://huggingface.co/spaces/Sivaneshakumar/sanjeevani-backend/resolve/main/scripts/test_models.py
383 Bytes
| from pathlib import Path | |
| BASE_DIR = Path(__file__).resolve().parents[1] | |
| MODEL_DIR = BASE_DIR / "models" / "pretrained" | |
| for model_dir in MODEL_DIR.iterdir(): | |
| if model_dir.is_dir(): | |
| files = list(model_dir.rglob("*")) | |
| files = [f for f in files if f.is_file()] | |
| print(f"{model_dir.name:30} {len(files):5} files") | |
| print("\nModel directory check completed.") |