Spaces:
Runtime error
Runtime error
Commit
·
fa56924
1
Parent(s):
b8b076a
Update utils/sentence_embedding.py
Browse files
utils/sentence_embedding.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
cwd = os.getcwd()
|
4 |
-
module2add = '
|
5 |
sys.path.append(module2add)
|
6 |
|
7 |
from configs.model_config import cfg as model_configs
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
cwd = os.getcwd()
|
4 |
+
module2add = '/'.join(cwd.split("/")[:-1])
|
5 |
sys.path.append(module2add)
|
6 |
|
7 |
from configs.model_config import cfg as model_configs
|