We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9cb5b commit 04d5533Copy full SHA for 04d5533
utils.py
@@ -18,6 +18,15 @@ def __init__(self, config):
18
config['index_path'],
19
config['model_path'],
20
)
21
+ self.check_env()
22
+
23
24
+ def check_env(self):
25
+ if not os.path.exists(self.exists_index_path):
26
+ parent_path = os.path.join(self.exists_index_path, os.pardir)
27
+ os.makedirs(os.path.abspath(parent_path), exist_ok=True)
28
+ with open(self.exists_index_path, 'w') as wp:
29
+ wp.write("[]")
30
31
32
def get_exists_index(self):
0 commit comments