Spaces:
Running
Running
Download model_download.py from umarch/CV-Automation-Ranking: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/umarch/CV-Automation-Ranking/resolve/main/model_download.py
- Command line
-
hf download hf://spaces/umarch/CV-Automation-Ranking/model_download.py
-
curl -L -o model_download.py https://huggingface.co/spaces/umarch/CV-Automation-Ranking/resolve/main/model_download.py
282 Bytes
| from sentence_transformers import SentenceTransformer | |
| import os | |
| model_name = 'all-mpnet-base-v2' | |
| model = SentenceTransformer(model_name) | |
| save_path = './all-mpnet-base-v2-model' # Specify your desired save path | |
| model.save(save_path) | |
| print(f"Model saved to: {save_path}") |