Spaces:
Sleeping
Sleeping
Commit
·
687db51
1
Parent(s):
04f8232
changed model to "mixedbread-ai/mxbai-embed-large-v1"
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import torch # For gpu
|
|
7 |
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
8 |
|
9 |
# Load a pretrained Sentence Transformer model and move it to the appropriate device
|
10 |
-
model = SentenceTransformer(
|
11 |
model = model.to(device)
|
12 |
|
13 |
# Function that does the embedding
|
|
|
7 |
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
8 |
|
9 |
# Load a pretrained Sentence Transformer model and move it to the appropriate device
|
10 |
+
model = SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
11 |
model = model.to(device)
|
12 |
|
13 |
# Function that does the embedding
|