Spaces:
Runtime error
Runtime error
Download src/utils/load_embeddings.py from Guillaumedbx/AssistantJuridique2: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/spaces/Guillaumedbx/AssistantJuridique2/resolve/main/src/utils/load_embeddings.py
- Command line
-
hf download hf://spaces/Guillaumedbx/AssistantJuridique2/src/utils/load_embeddings.py
-
curl -L -o load_embeddings.py https://huggingface.co/spaces/Guillaumedbx/AssistantJuridique2/resolve/main/src/utils/load_embeddings.py
234 Bytes
| import os | |
| from langchain_community.embeddings import HuggingFaceEmbeddings | |
| import streamlit as st | |
| def get_local_embeddings(): | |
| return HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2") | |