Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,11 +53,10 @@ local_embedding = HuggingFaceEmbeddings(
|
|
53 |
model_name="Alibaba-NLP/gte-Qwen2-1.5B-instruct",
|
54 |
model_kwargs={
|
55 |
"trust_remote_code": True,
|
56 |
-
"device": "
|
57 |
}
|
58 |
)
|
59 |
|
60 |
-
|
61 |
print(" Qwen2-1.5B local embedding model loaded.")
|
62 |
|
63 |
|
|
|
53 |
model_name="Alibaba-NLP/gte-Qwen2-1.5B-instruct",
|
54 |
model_kwargs={
|
55 |
"trust_remote_code": True,
|
56 |
+
"device": "cuda" # or "cuda:0"
|
57 |
}
|
58 |
)
|
59 |
|
|
|
60 |
print(" Qwen2-1.5B local embedding model loaded.")
|
61 |
|
62 |
|