Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update appStore/embed.py
Browse files- appStore/embed.py +1 -0
appStore/embed.py
CHANGED
@@ -2,6 +2,7 @@ from langchain_community.embeddings import HuggingFaceEmbeddings, HuggingFaceInf
|
|
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 |
|
|
|
2 |
from langchain_community.vectorstores import Qdrant
|
3 |
from langchain_qdrant import FastEmbedSparse, RetrievalMode
|
4 |
from torch import cuda
|
5 |
+
import streamlit as st
|
6 |
# get the device to be used eithe gpu or cpu
|
7 |
device = 'cuda' if cuda.is_available() else 'cpu'
|
8 |
|