Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
cuda import
Browse files- 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 |
|