santhoshraghu commited on
Commit
d389cd4
·
verified ·
1 Parent(s): 613658a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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": "cpu"
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