Spaces:
Runtime error
Runtime error
yuxj
commited on
Commit
•
0e80fa1
1
Parent(s):
e8c474c
我这双手呀!
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def best_device():
|
|
16 |
|
17 |
device = best_device()
|
18 |
embeddings = HuggingFaceEmbeddings(model_name = 'GanymedeNil/text2vec-large-chinese', model_kwargs={'device': device})
|
19 |
-
local_db = FAISS.load_local('
|
20 |
|
21 |
model_name = 'THUDM/chatglm-6b-int4'
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code = True)
|
|
|
16 |
|
17 |
device = best_device()
|
18 |
embeddings = HuggingFaceEmbeddings(model_name = 'GanymedeNil/text2vec-large-chinese', model_kwargs={'device': device})
|
19 |
+
local_db = FAISS.load_local('./text2vec/store', embeddings)
|
20 |
|
21 |
model_name = 'THUDM/chatglm-6b-int4'
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code = True)
|