Spaces:
Runtime error
Runtime error
李新豪
commited on
Commit
·
9462146
1
Parent(s):
14b8b1d
refresh
Browse files- __init__.py +0 -6
- src/retrieve_dialog.py +4 -4
__init__.py
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
from .get_dataset import *
|
3 |
-
from .logger import *
|
4 |
-
from .prompt_concat import *
|
5 |
-
from .retrieve_dialog import *
|
6 |
-
from .utils import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/retrieve_dialog.py
CHANGED
@@ -29,11 +29,11 @@ class RetrieveDialog:
|
|
29 |
|
30 |
# config = load_json("config/config.json")
|
31 |
# local_dir = config["bge_local_path"]
|
32 |
-
local_dir = os.environ.get('MODEL_PATH', '
|
33 |
|
34 |
-
if not os.path.exists(local_dir):
|
35 |
-
|
36 |
-
self.emb_model = SentenceTransformer(
|
37 |
|
38 |
self.dialogs, self.context_index = self._get_emb_base_by_list(raw_dialog_list)
|
39 |
|
|
|
29 |
|
30 |
# config = load_json("config/config.json")
|
31 |
# local_dir = config["bge_local_path"]
|
32 |
+
# local_dir = os.environ.get('MODEL_PATH', 'BAAI/bge-large-zh-v1.5')
|
33 |
|
34 |
+
# if not os.path.exists(local_dir):
|
35 |
+
# print("Please download bge-large-zh-v1.5 first!")
|
36 |
+
self.emb_model = SentenceTransformer("bge-large-zh-v1.5")
|
37 |
|
38 |
self.dialogs, self.context_index = self._get_emb_base_by_list(raw_dialog_list)
|
39 |
|