jiarongqiu commited on
Commit
886047c
·
1 Parent(s): 8c52043
Files changed (1) hide show
  1. service/database.py +2 -1
service/database.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  import json
 
3
  from pathlib import Path
4
  from huggingface_hub import CommitScheduler
5
  from datasets import load_dataset
@@ -9,7 +10,7 @@ from util.schema import Dir
9
 
10
  class Database:
11
 
12
- LOCAL = os.path.join(os.path.dirname(__file__),"data")
13
  USERNAME = "JR818"
14
  REPO = "Web3"
15
 
 
1
  import os
2
  import json
3
+ import tempfile
4
  from pathlib import Path
5
  from huggingface_hub import CommitScheduler
6
  from datasets import load_dataset
 
10
 
11
  class Database:
12
 
13
+ LOCAL = os.path.join(tempfile.gettempdir(),"data")
14
  USERNAME = "JR818"
15
  REPO = "Web3"
16