Spaces:
Running
Running
| #login huggingface | |
| from huggingface_hub import login | |
| import os | |
| HF_TOKEN = os.getenv("HF_TOKEN") | |
| login(HF_TOKEN) | |
| #download model | |
| from sentence_transformers import SentenceTransformer | |
| print("Downloading model...") | |
| model = SentenceTransformer("google/embeddinggemma-300m") | |
| print("Model downloaded and cached successfully!") |