Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,8 @@ from langchain_text_splitters import TokenTextSplitter
|
|
4 |
from langchain.docstore.document import Document
|
5 |
from torch import cuda
|
6 |
from langchain_community.embeddings import HuggingFaceEmbeddings, HuggingFaceInferenceAPIEmbeddings
|
|
|
|
|
7 |
device = 'cuda' if cuda.is_available() else 'cpu'
|
8 |
|
9 |
|
|
|
4 |
from langchain.docstore.document import Document
|
5 |
from torch import cuda
|
6 |
from langchain_community.embeddings import HuggingFaceEmbeddings, HuggingFaceInferenceAPIEmbeddings
|
7 |
+
from langchain_community.vectorstores import Qdrant
|
8 |
+
from qdrant_client import QdrantClient
|
9 |
device = 'cuda' if cuda.is_available() else 'cpu'
|
10 |
|
11 |
|