ppsingh commited on
Commit
3e5d223
·
1 Parent(s): 5170600

cuda import

Browse files
Files changed (1) hide show
  1. appStore/embed.py +1 -0
appStore/embed.py CHANGED
@@ -1,6 +1,7 @@
1
  from langchain_community.embeddings import HuggingFaceEmbeddings, HuggingFaceInferenceAPIEmbeddings
2
  from langchain_community.vectorstores import Qdrant
3
  from langchain_qdrant import FastEmbedSparse, RetrievalMode
 
4
  # get the device to be used eithe gpu or cpu
5
  device = 'cuda' if cuda.is_available() else 'cpu'
6
 
 
1
  from langchain_community.embeddings import HuggingFaceEmbeddings, HuggingFaceInferenceAPIEmbeddings
2
  from langchain_community.vectorstores import Qdrant
3
  from langchain_qdrant import FastEmbedSparse, RetrievalMode
4
+ from torch import cuda
5
  # get the device to be used eithe gpu or cpu
6
  device = 'cuda' if cuda.is_available() else 'cpu'
7