MBilal-72 commited on
Commit
0bb1c44
·
verified ·
1 Parent(s): b3b345f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):