Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def setup_embeddings_and_db(project_folder: str): # Note the underscore before
|
|
46 |
store = LocalFileStore(CACHE_EMBEDDINGS_PATH)
|
47 |
|
48 |
model_name = "BAAI/bge-m3"
|
49 |
-
model_kwargs = {"device": "
|
50 |
encode_kwargs = {"normalize_embeddings": False}
|
51 |
embeddings = HuggingFaceEmbeddings(
|
52 |
model_name=model_name,
|
|
|
46 |
store = LocalFileStore(CACHE_EMBEDDINGS_PATH)
|
47 |
|
48 |
model_name = "BAAI/bge-m3"
|
49 |
+
model_kwargs = {"device": "cpu"}
|
50 |
encode_kwargs = {"normalize_embeddings": False}
|
51 |
embeddings = HuggingFaceEmbeddings(
|
52 |
model_name=model_name,
|