Spaces:
Runtime error
Runtime error
Download python_chunk.Rmd from aoiferyan/api_first_attempt: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/aoiferyan/api_first_attempt/resolve/main/python_chunk.Rmd
- Command line
-
hf download hf://spaces/aoiferyan/api_first_attempt/python_chunk.Rmd
-
curl -L -o python_chunk.Rmd https://huggingface.co/spaces/aoiferyan/api_first_attempt/resolve/main/python_chunk.Rmd
338 Bytes
| title: "Untitled" | |
| output: html_document | |
| date: "2024-04-04" | |
| ```{python} | |
| from sentence_transformers import SentenceTransformer | |
| sentences = ["This is an example sentence", "Each sentence is converted"] | |
| model = SentenceTransformer('sentence-transformers/all-miniLM-L6-v2') | |
| embeddings = model.encode(sentences) | |
| print(embeddings) | |
| ``` |