Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,8 +49,8 @@ class GEOSEOApp:
|
|
| 49 |
# Updated embeddings initialization without the `device` parameter
|
| 50 |
self.embeddings = HuggingFaceEmbeddings(
|
| 51 |
model_name="sentence-transformers/all-MiniLM-L6-v2",
|
|
|
|
| 52 |
cache_folder="./hf_cache",
|
| 53 |
-
model_kwargs={'device': 'cpu'} # Ensure the model loads on CPU
|
| 54 |
)
|
| 55 |
|
| 56 |
def setup_parsers(self):
|
|
|
|
| 49 |
# Updated embeddings initialization without the `device` parameter
|
| 50 |
self.embeddings = HuggingFaceEmbeddings(
|
| 51 |
model_name="sentence-transformers/all-MiniLM-L6-v2",
|
| 52 |
+
model_kwargs={"device": "cpu"},
|
| 53 |
cache_folder="./hf_cache",
|
|
|
|
| 54 |
)
|
| 55 |
|
| 56 |
def setup_parsers(self):
|