PaulMartrenchar commited on
Commit
09c7fec
·
1 Parent(s): 6b24d80

With a login

Browse files
Files changed (1) hide show
  1. db.py +3 -1
db.py CHANGED
@@ -1,8 +1,9 @@
1
  from typing import List
2
  from JobDescription import JobDescription
3
- from huggingface_hub import hf_hub_download, HfApi
4
  from pathlib import Path
5
  import json
 
6
 
7
  REPO_ID = "jobsearch_database"
8
  FILE_NAME = "db.json"
@@ -13,6 +14,7 @@ JSON_DATASET_PATH = JSON_DATASET_DIR / FILE_NAME
13
  class Database:
14
  def __init__(self):
15
  self.DB : List[JobDescription] = []
 
16
 
17
 
18
  def get_current_db(self) -> List[JobDescription]:
 
1
  from typing import List
2
  from JobDescription import JobDescription
3
+ from huggingface_hub import hf_hub_download, HfApi, login
4
  from pathlib import Path
5
  import json
6
+ import os
7
 
8
  REPO_ID = "jobsearch_database"
9
  FILE_NAME = "db.json"
 
14
  class Database:
15
  def __init__(self):
16
  self.DB : List[JobDescription] = []
17
+ login(token=os.getenv("HF"))
18
 
19
 
20
  def get_current_db(self) -> List[JobDescription]: