Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Raahulthakur
/
FinsightX
like
5
Running
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
1f30eec
FinsightX
/
embeddings
/
embedder.py
zykrix
Initial commit of FinSightX
bb4e28f
4 months ago
raw
Copy download link
history
blame
Safe
169 Bytes
from
sentence_transformers
import
SentenceTransformer
model = SentenceTransformer(
"all-MiniLM-L6-v2"
)
def
get_embedding
(
text:
str
):
return
model.encode([text])[
0
]