Update travel/self_rag_tool.py
Browse files- travel/self_rag_tool.py +1 -1
travel/self_rag_tool.py
CHANGED
@@ -135,7 +135,7 @@ class embedding(object):
|
|
135 |
self.tokenizer = AutoTokenizer.from_pretrained('maidalun1020/bce-embedding-base_v1')
|
136 |
self.model = AutoModel.from_pretrained('maidalun1020/bce-embedding-base_v1')
|
137 |
|
138 |
-
self.device = '
|
139 |
self.model.to(self.device)
|
140 |
|
141 |
|
|
|
135 |
self.tokenizer = AutoTokenizer.from_pretrained('maidalun1020/bce-embedding-base_v1')
|
136 |
self.model = AutoModel.from_pretrained('maidalun1020/bce-embedding-base_v1')
|
137 |
|
138 |
+
self.device = 'cpu' # if no GPU, set "cpu"
|
139 |
self.model.to(self.device)
|
140 |
|
141 |
|